[Solved] Ssh to banana pi R3 via ethernet

I have a banana pi R3 version 1.1. I have a serial port console working fine and am able to flash an SD card and also follow the instructions to flash NAND and eMMC. I am attempting to SSH into the device and have failed thus far. I have ethernet on my network connected to the WAN ethernet input. I pick up an address from my internal router. I can ping that address, but I get rejected when I try to SSH in.

ssh root@192.168.86.245
ssh: connect to host 192.168.86.245 port 22: Connection refused

You will probably notice that I have a 192.168.86.245 address. Is there any problem with my network DHCP pool being 192.168.86.20 to 192.168.86.250? Also am I using the correct network input to SSH to the device (the WAN port)? If I attempt to use one of the LAN ports I cannot even ping the device. I am assuming I will need to be able to SSH into the device before I ever attempt anything with the graphical Luci interface.

ifconfig gives quite a bit of output, but here are the first two entries...

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr C6:68:02:59:84:C7
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fdc6:c917:e7ce::1/60 Scope:Global
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br-wan    Link encap:Ethernet  HWaddr 72:E4:7D:72:7A:B4
          inet addr:192.168.86.245  Bcast:192.168.86.255  Mask:255.255.255.0
          inet6 addr: fd9e:cc2b:ed59:17c:70e4:7dff:fe72:7ab4/64 Scope:Global
          inet6 addr: fe80::70e4:7dff:fe72:7ab4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:261 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:97195 (94.9 KiB)  TX bytes:5736 (5.6 KiB)

Yes, do not put the router's address within the DHCP pool

That is expected... the firewall doesn't allow input from the wan by default.

No, it needs to be a lan port.

You should be connecting to the lan, and then making the ssh connection to root@192.168.1.1

1 Like

Thanks very much for the quick reply and help. I am able to ssh now that I am connecting into the lan port and using the 192.168.1.1 address.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.