I looked on previous related answers and I think I'm close to nail this down...
I can ssh from my machine outside to other servers on the internet. When I try to ssh back to my machine, the connection is refused. I'm working on Ubuntu 10.4.
I found out that in my wireless router settings, all inbound traffic are blocked. I then added SHH and FTP to the white list. I can see now a private and public ip addresses. After rebooting both my machine and the router (which is also the modem), the problem is yet to be fixed.
Any ideas? Thanks!
last comment - I'm using the inet address I see under wlan when I run the ssh; is that correct? it even fails when I'm trying to ssh from my machine to my machine.
update: I can see on my router page the following:
|device: allowed apps: app type: protocol : port #: public ip| my-laptop : SSH Server : - : TCP : 22: 108...
I'm trying to connect from the internet and I'm using the WAN IP. How do I check if the router forwards inbound connections to my local ip address?
Two things to do:
a. I was using a wrong ip address. The inet address is private. The router assigns a different public address that is not listed using ifconfig. Need to go to the router settings and find it. Even easier, go to www.whatismyip.com to find out the right ip.
b. Also, Need to check if Ubuntu blocks the inbound traffic. I don't know what's the default because I played with it from the command line and I might changed things. Anyway, Ubunutu has a firewall apparently, called ufw I think; it maintains something called iptables that contains rules for inbound and outbound access. The easiest way to update it is to install gufw (a very intuitive gui for the firewall) and either allow all inbound traffic or just certain services like ssh on port 22.
Thanks for the help!