ssh: Connection reset by peer
Hello,
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 84.123.3.12 or so, I get the following error: Code:
me@mymachine:~/.ssh$ ssh -p 1007 84.125.31.36 -vvvv I appreciate any advice, Lotharster |
well more than likely you're getting notihng more than a rst packet back from the server... i guess your sshd is configured to only lsten on one interface? or you have a firewall rejecting connections to that port on the internet side?
|
Quote:
Quote:
Quote:
|
if you sit on the server and run "tcpdump -vn port 22" you'll see all the ins and outs as far as the server is concerned.
|
With tcpdump, I see incoming packages for port 22. So the problem lies with my server. Any ideas?
|
list your firewall with "iptables -L" check /etc/ssh/sshd_config for listnening addresses, check /etc/hosts.allow and /etc/hosts.deny for tcpwrapper based restrcitions. also check /var/log/secure for logs if there are any.
|
Quote:
Quote:
Code:
# What ports, IPs and protocols we listen for Quote:
Quote:
Thanks acid_kewpie. I have to leave for now, I'm gonna check for suggestions tomorrow. regards, Lotharster |
All times are GMT -5. The time now is 08:39 PM. |