LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-21-2005, 10:01 AM   #1
manojg
Member
 
Registered: May 2004
Posts: 78

Rep: Reputation: 15
Connection reset by peer


Hi,

I had connected to a remote computer through SSH. After few hours I got following massage:

Read from remote host abc.xyz.edu: Connection reset by peer. Connection to abc.xyz.edu closed.

Could you tell me what the problem is and how to fix this.

Thank you very much.

Manojg
 
Old 06-22-2005, 09:59 AM   #2
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
You lost a connection to it. There's too many variables to say what exactly it was. Your modem could've dropped offline for a minute, the remote computer might have been rebooted, or decided that you filled your quota of time and kicked you, your ISP might have had some problems, etc.
 
Old 07-09-2005, 08:49 AM   #3
mike-g2
LQ Newbie
 
Registered: Apr 2004
Distribution: CentOS 5 x86_64
Posts: 16

Rep: Reputation: 0
I'm running into the same problem when I log in from home. Here's some extra information: the remote host is my linux machine running FC3 with firestarter.

Is there a way to find out if it's my linux server activating this and if so where's the setting that's causing it?

Thanks.

Mike
 
Old 12-01-2005, 08:00 AM   #4
Aestus
LQ Newbie
 
Registered: Aug 2004
Location: Wentworth, NH
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
Question Same problem, Win2K -> Slackware

I'm having the same problem. I can SSH to my home machine, but after some point (usually between 5 and 30 minutes later, I would guess) I get a "connection reset by peer" error. Here's the tail end of ssh -vv host.name.com 2>/tmp/ssh.log:
Code:
debug2: channel 0: window 32765 sent adjust 32771
debug2: channel 0: window 32743 sent adjust 32793
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 4/5 cfd -1)

debug3: channel 0: close_fds r 4 w 5 e 6 c -1
debug3: fd 2 is not O_NONBLOCK
Read from remote host host.name.com: Connection reset by peer
Connection to host.name.com closed.
debug1: Transferred: stdin 0, stdout 0, stderr 108 bytes in 6078.6 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
debug1: compress outgoing: raw data 26857, compressed 12497, factor 0.47
debug1: compress incoming: raw data 168482, compressed 39876, factor 0.24
I'm not sure if this can be traced, but I'd like to figure out where the weak link is. Generally, I SSH home and connect to other machines inside screen(1). The top-level SSH connection fails, I reconnect, I attach to the same screen, and all my old SSH connections are still active. So, it appears to be something on the local network, be it my workstation, the router, or the connection to our service provider.

I'm connecting from Win2K SP4, either with OpenSSH inside xterm via Cygwin, or PuTTY. Remote machine is Slackware 10.0. Any ideas or suggestions would be appreciated. =)
 
Old 12-01-2005, 08:04 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Question

Try this. its based on asumptions.. I can not try it but would be interested if it corrects the problem.

http://www.linuxquestions.org/questi...hreadid=374796

" in your firewall configuration, increase the timeout for ssh connection to a value higher than /proc/sys/net/ipv4/tcp_keepalive_time" would be the cleanest

Last edited by nx5000; 12-01-2005 at 08:06 AM.
 
Old 12-01-2005, 08:30 AM   #6
Aestus
LQ Newbie
 
Registered: Aug 2004
Location: Wentworth, NH
Distribution: Slackware
Posts: 10

Rep: Reputation: 0
I don't believe it's a timeout issue in my case. Oftentimes I'll lose the connection while I am typing. Vim will become unresponsive, and after 15-20 seconds I'll get the "connection reset" message.
 
Old 11-29-2008, 12:43 AM   #7
micster
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
Sorry to be bringing up old post, but I have this problem too.

I came across an interesting thread here: http://www.linuxquestions.org/questi...+reset+by+peer where "not_an_expert" brings up the idea that it could be Linux IP stack and something about TCP overflow.

I noticed that it happens to more than my ssh sessions, my SAMBA and FTP are effected also. Wish I knew how to fix this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection reset by peer tkt Linux - Newbie 1 06-22-2005 10:48 AM
ssh connection reset by peer Brain Drop Linux - Software 4 07-30-2004 09:18 PM
Connection reset by peer mijohnst Linux - Networking 7 07-14-2004 11:14 AM
Connection reset by peer digimike Linux - Networking 0 06-18-2003 10:53 PM
Connection Reset by peer lynden Linux - Networking 2 10-13-2002 09:14 AM


All times are GMT -5. The time now is 05:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration