Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set up a SSH server on my Ubuntu on my laptop by OpenSSH. While ssh localhost is okay, I try to first ssh to another computer from, and then from there ssh back to my laptop with its external IP address but it fails with "connect to host xxx port xxx: Connection timed out". My laptop is wirelessly connected to the internet through a router with Comcast as the provider. So I guess I am having a dynamic IP? What is the correct way for setup or connection? Thanks and regards!

share|improve this question

migrated from Aug 17 '09 at 6:15

This question came from our site for professional and enthusiast programmers.

If the IP reported by ifconfig is in the range - - -

You will need to configure your router to forward port 22 to this address. SSH should still work from other machines on your wireless lan.

share|improve this answer

As the answer above states, if you're on a wireless LAN, you're probably stuck behind a NAT (network address translation) firewall. You need to go to your wireless router's configuration page (usually and tell it to forward connections on port 22 to your laptop.

share|improve this answer
And while you're at it, set an admin password so your neighbors can't reconfigure your router. – ysth Aug 17 '09 at 4:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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