ssh connection reset by peer
after a period of idle time i am being disconnected from my box with the following message.
Read from remote host hostname: Connection reset by peer Connection to hostname closed. Does anyone have any insight as to what would cause this? i am almost POSITIVE it is not the KeepAlive setting.. the system default is yes.. and i have not changed it otherwise. thanks |
Re: ssh connection reset by peer
Quote:
|
Well the original poster didn't reply, but seeing as how I have the exact same problem, I'll reply with my information.
SSH Version: OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f (Also OpenSSH 3.5pl, I upgraded in hopes that it would fix the problem) This is on Slackware 9.0, Some notes tho... SecureCRT doesn't disconnect me when I'm in Windows, although it used to until I set the keepalive setting in SecureCRT. Thinking that the keepalive may not be set to yes as it says it is by default in the manpage, I edited my ~/.ssh/config and for Host * I added KeepAlive yes, but that didn't work as that bastard peer still keeps resetting my connection. ;P One more note, this isn't just with ssh as I found out, but with normal 'telnet' as well. Any insight given would be greatly appreciated. |
First sorry for replying late.
Is there a timeout line in your config file,increase the timeout as you see fit. You may also do the following echo -e "300\c" > /proc/sys/net/ipv4/tcp_keepalive_time or (if you are using ipchains) ipchains -M -S 144000 60 3600 Finally are you using ip masquerading ? |
And I think I should ask you how come that you have only one post even though you have registered in october 2002?
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
This can be caused by the connection.
I would put something like this in your rc.local file ping -i 60 68.63.64.1 > /dev/null 2>&1 & you may want to use an ip address a couple of hops away. this will keep your connection from going idle. you can use traceroute on a few major sites and use a router that's common to all major sites a couple of hops away. If you still have a problem then send the output of ping every couple of seconds to a file and see if your connections doing something when it gets logged off. somewhere along the way from one machine to the other you should find the problem. |
All times are GMT -5. The time now is 04:02 PM. |