I have a strange problem logging into my machine via ssh. Some time ago it worked perfectly, but now it doesn't.
I'm connected to thze Internet with a router, so I use NAT.
When I login via ssh using my local IP 192.168.2.100, it works. But when I try to login using the public IP 18.104.22.168 or so, I get the following error:
me@mymachine:~/.ssh$ ssh -p 1007 22.214.171.124 -vvvv
OpenSSH_4.2p1 Debian-7ubuntu3.1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 126.96.36.199 [188.8.131.52] port 1007.
debug1: Connection established.
debug1: identity file /home/lo/.ssh/identity type -1
debug1: identity file /home/lo/.ssh/id_rsa type -1
debug1: identity file /home/lo/.ssh/id_dsa type -1
ssh_exchange_identification: read: Connection reset by peer
(I use 1007 as my public port; the problem persists if i switch to port 22)
I appreciate any advice,