How to connect to my server at home with ssh from outside?
by thomasbb from LinuxQuestions.org on (#5E0WE)
My server has IP a.b.c.d according to whatismyip.com, but when I type
Code:ssh -v user@a.b.c.dfrom outside, it times out.
If I try to connect from the LAN at home, it all goes well:
Code:ssh -v user@my.home.lan.ipand ping works from outside:
Code:ping -c4 a.b.c.dThe firewall enables ssh on both interfaces:
Code:iptables -A INPUT -p tcp -i $IFACE_LAN --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -i $IFACE_WAN --dport 80 -j ACCEPTThere's something I must have forgotten, any idea what it is?


Code:ssh -v user@a.b.c.dfrom outside, it times out.
If I try to connect from the LAN at home, it all goes well:
Code:ssh -v user@my.home.lan.ipand ping works from outside:
Code:ping -c4 a.b.c.dThe firewall enables ssh on both interfaces:
Code:iptables -A INPUT -p tcp -i $IFACE_LAN --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -i $IFACE_WAN --dport 80 -j ACCEPTThere's something I must have forgotten, any idea what it is?