I'm writing a script that uses SSH. I ran "arp" and got these results:
Code:
/$ arp
Address HWtype HWaddress Flags Mask Iface
192.168.1.2 ether 28:be:9b:1a:de:3e C wlan0
192.168.1.5 ether 00:1c:c3:9e:b8:55 C wlan0
192.168.1.4 ether 00:19:df:d3:5e:4b C wlan0
192.168.1.3 (incomplete) wlan0
192.168.1.1 ether 20:4e:7f:3f:f4:1c C wlan0
192.168.1.104 (incomplete) wlan0
192.168.1.250 (incomplete) wlan0
192.168.1.31 ether e0:46:9a:7a:25:2a C wlan0
192.168.1.25 ether 60:6c:66:62:57:cd C wlan0
When I type "ssh (ip)", If the HWaddress was "(incomplete)", It returns this:
Code:
/$ ssh 192.168.1.104
ssh: connect to host 192.168.1.104 port 22: No route to host
If I tried to SSH into the others, either this:
Code:
/$ ssh 192.168.1.31
ssh: connect to host 192.168.1.31 port 22: Connection refused
or this:
happened. I think the latter result (doing nothing) is from trying to connect to an iPhone. The "Connection refused" result is what happens when I try to connect to my other Ubuntu laptop. What am I doing wrong? Do I need to change the port I use? How can I do that? Is the other computer even listening on any other ports? I need this to work on computers that I don't have direct access to, so how can I make sure that it will log in without having to enable SSH - if this is what I need to do - on the target computer.
Bookmarks