0

I am trying to SSH into a Raspberry Pi with Ubuntu 16 OS. However, whenever I try to SSH into it, I get this message.

ssh: connect to host 192.168.0.32 port 22: No route to host```  

So I tried to run nmap and I get this error message:

Error #486: Your port specifications are illegal.  Example of proper form: "-100,200-1024,T:3000-4000,U:60000-"
QUITTING!   

After looking around online I am still none the wiser as to what this means or how to fix it

I also can not ping the Raspberry Pi from my computer or ping my computer from the Raspberry Pi.

Greenonline
  • 2,081
  • seems very likely that there is a network problem on the raspberry pi. I have not used, but would suggest that you debug and see what driver/hardware for the network you see on pi. – JoelParke Mar 03 '21 at 20:26
  • Can you do a ssh -vv ? – Simon Banks Mar 03 '21 at 20:29
  • 1
    describe your local area network (LAN). Is there a router? is there a switch, perhaps via the same router? What is the sub-net for LAN side of the router, if there is one? How did the raspberry pi get its IP address? Was it via DHCP from the router? Is everything on the same sub-net? – Doug Smythies Mar 03 '21 at 20:34
  • sorry im fairly new to this, im guessing is the ip of the host. I did that and it says "Bad tun device '192.168.0.32'" – j.dizzle Mar 03 '21 at 20:34
  • First check if you have UFW running on the pi sudo ufw status verbose Also make sure you don't have AP isolation set on your local network (assuming you are working on your local network). – mchid Mar 03 '21 at 23:58
  • Additionally, run hostname -I | awk '{print $1}' on your pi to verify the IP is correct. Then, check to see that the router also shows the same IP is assigned to your raspberry pi. – mchid Mar 04 '21 at 00:02
  • Actually, before you do anything, try to ping your raspberry pi ping 192.168.0.32 And please post the nmap command that you used. – mchid Mar 04 '21 at 00:05
  • 1
    Does this answer your question? Ssh: No route to host – Greenonline Mar 07 '21 at 03:11

0 Answers0