Suvayu Ali<fatkasuvayu+linux@gmail.com> writes:
The host name for my localhost is limited to the local network. The
Siemens router from my ISP (Telus) probably implements some kind of NAT
(I'm not sure). So the outgoing connection worked, whereas the incoming
connection failed.
When you have connected to the remote host, call "who":
slbpky:~> who
albinus tty7 2009-09-02 16:19 (:0)
albinus pts/0 2009-09-02 16:19 (localhost:10.0)
albinus pts/1 2009-09-04 08:29 (100.200.100.200)
albinus pts/2 2009-09-04 08:31 (localhost:12.0)
The string "100.200.100.200" I have used instead of my real values ...
This is the IP address your router is visible in the net. You can try to
reach it from your remote host via "ping 100.200.100.200".
If you have enabled NAT forwarding of port 22 in our router (Siemens
router shall allow this), you can even try "ssh user@100.200.100.200".
You shall reach your local host from the remote one.
I don't have a static IP, moreover from the outside I can only see my
ISP's servers not my home machine. Hence I can't login from the outside.
I hope you see at least your router as described above.