I would like to SSH into my RaspberryPi connected with Ethernet cable using Ubuntu OS.
I believe that the Pi device is indeed connected to my Laptop, because:
after running
ifconfig eth0
command I get the result that
inet addr:10.42.0.1
Then running
ping 10.42.0.1
with the Ethernet cable plugged in I get such results:
PING 10.42.0.1 (10.42.0.1) 56(84) bytes of data. 64 bytes from 10.42.0.1: icmp_seq=1 ttl=64 time=0.031 ms 64 bytes from 10.42.0.1: icmp_seq=2 ttl=64 time=0.030 ms ... 6 packets transmitted, 6 received, 0% packet loss, time 4997ms
whereas running the same command with PC and Pi disconnected the results are:
PING 10.42.0.1 (10.42.0.1) 56(84) bytes of data. From 10.128.128.128 icmp_seq=1 Packet filtered From 10.128.128.128 icmp_seq=2 Packet filtered From 10.128.128.128 icmp_seq=3 Packet filtered 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2000ms
Finally, I want to connect SSH to the device by running the command:
sudo ssh [email protected]
which, when the cable is plugged in reports:
ssh: connect to host 10.42.0.1 port 22: Connection refused
whereas, when the cable is plugged off reports:
ssh: connect to host 10.42.0.1 port 22: No route to host
Do these results mean that there is a successfull connection between two devices (my laptop and RaspberryPi) and that they are actually able to communicate?
If yes, how to proceed to ssh from Laptop into RaspberryPi?
Some of the issues I thought of are:
I am running incorrect command (i.e. it should be something different than
sudo ssh [email protected]
- some firewall or antivirus blocks the connection
could it be one of these?