I want to connect through SSH my Raspberry Pi 3 B+ to my laptop running Ubuntu 18.04 just with an Ethernet cable without any internet connection.
1) Wi-Fi on for Pi and laptop [ok]
2) Wi-Fi off for Pi and laptop [problem]
1) Wi-Fi on for Pi and laptop [ok]
If I turn Wi-Fi on for my laptop and my Pi, I can get the IP address of the Pi with hostname -I
, which returns two addresses for my Pi 169.254.176.100 192.168.178.80
, see picture below.
As far as I understand it, 192.168.178.80
is the IP address of the Pi due to Wi-Fi.
I can connect to pi@192.168.178.80
through ssh from my laptop (user fernandez), see picture below
While Wi-Fi is on, ip route
returns on my laptop
fernandez@emmabook5:~$ ip route
default via 192.168.178.1 dev wlp3s0 proto dhcp metric 600
169.254.0.0/16 dev wlp3s0 scope link metric 1000
192.168.178.0/24 dev wlp3s0 proto kernel scope link src 192.168.178.77 metric 600
fernandez@emmabook5:~$
and on the Pi
pi@emmapi1:~ $ ip route
default via 192.168.178.1 dev wlan0 src 192.168.178.80 metric 303
169.254.0.0/16 dev eth0 proto kernel scope link src 169.254.176.100 metric 202
192.168.178.0/24 dev wlan0 proto kernel scope link src 192.168.178.80 metric 303
pi@emmapi1:~ $
2) Wi-Fi off for Pi and laptop [problem]
When I turn Wi-Fi off for the Pi and my laptop, hostname -I
returns only 169.254.176.100
for the Pi, and nothing for my laptop (the address 192.168.178.77
was the one I had for my laptop while Wi-Fi was on), see picture below
I try to naively connect from my laptop to the Pi through SSH to 169.254.176.100
after connecting both with an Ethernet cable (the orange light for Ethernet connection of the Pi is on, so I assume, it is properly connected)
but it fails and I only get the error:
What does this mean or how can I connect through SSH to my Pi without internet connection only with an Ethernet cable?
For Wi-Fi off, ip route
returns nothing on my laptop
fernandez@emmabook5:~$ ip route
fernandez@emmabook5:~$
and on the Pi
pi@emmapi1:~ $ ip route
default dev eth0 proto kernel scope link src 169.254.176.100 metric 202
169.254.0.0/16 dev eth0 proto kernel scope link src 169.254.176.100 metric 202
pi@emmapi1:~ $
ip route
for each scenario – Mauricio Fernández Jul 4 '18 at 14:27169.254.0.0/16
in the first case and obviously has a problem in the second. For that reason I am moving this to Ask Ubuntu. – goldilocks Jul 4 '18 at 14:55