I couldn't always ssh to my iPhone from my Mac. They're both on the same wifi network but sometimes the connection is established, sometimes it failed. From my Mac:

$ ssh root@
ssh: connect to host port 22: Operation timed out
$ ping 
PING ( 56 data bytes
ping: sendto: No route to host
ping: sendto: Host is down
ping: sendto: Host is down

I enabled SSH on the phone and am sure it can load webpages. So what might be a reason why they cannot connect?


  • Can you check your wifi's client list to see if what the iPhone shows as IP address really is what it actually uses?
    – Daniel Beck
    Jan 12 '11 at 18:19

Are you sure that your iPhone is still assigned that IP address? You can find the IP for the iPhone by going to:

        The blue arrow next to the Wi-Fi network you're connected to

This will show you the IP that the phone is assigned. You can also check the DHCP lease tables on your router. If SSH is indeed turned on you should be able to connect via SSH to that IP, ping should work to.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.