LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-07-2007, 07:19 AM   #1
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Connection reset by peer: why?


Hi all,
my ssh-connection got closed after some minutes with this message:

Read from remote host <name>: Connection reset by peer
Connection to <name> closed.

Directed by results of a google search I've added this line:


ClientAliveInterval 300

to this config file:

/etc/ssh/sshd_config

and then I reloaded service:


/sbin/service sshd reload


but there was no improvment.

Do you have any idea what's the problem? I'm using wireless connection.

Do you know how to solve this problem?

Many thanks in advance for any suggestion!

Marco
 
Old 01-07-2007, 07:37 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
This could be caused by several types of things. Since you are using a wireless network my first idea is that your wireless network signal quality is poor and the remote computer cannot maintain a link. My next idea is that there is a process monitor on the remote machine that kills idle processes. Does this happen when you are actively interacting with the remote computer or when you have not been busy on the remote computer? My last idea is that someone on the remote computer is killing your login process. Are you connecting to a business server where a system administrator might be watching the system? Maybe the system administrator doesn't want you to connect to that machine. (Admittedly that seems unlikely since you must have an account on that machine and you have already configured that account to use ssh.)

Of these three ideas I think that only the first two are realistic.

Last edited by stress_junkie; 01-07-2007 at 07:39 AM.
 
Old 01-07-2007, 07:44 AM   #3
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie
This could be caused by several types of things. Since you are using a wireless network my first idea is that your wireless network signal quality is poor and the remote computer cannot maintain a link. My next idea is that there is a process monitor on the remote machine that kills idle processes. Does this happen when you are actively interacting with the remote computer or when you have not been busy on the remote computer? My last idea is that someone on the remote computer is killing your login process. Are you connecting to a business server where a system administrator might be watching the system? Maybe the system administrator doesn't want you to connect to that machine. (Admittedly that seems unlikely since you must have an account on that machine and you have already configured that account to use ssh.)

Of these three ideas I think that only the first two are realistic.
Hi,
I'm at home using my private wireless connection. Strenght is excellent since wireless router is in the room where I'm working; I'm using a DSL.

It happens both when I'm actively working and in terminals in which pine is runnig, for example.

Marco
 
Old 01-07-2007, 10:52 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Are you connecting to a server that is managed by some else? If so it is possible that the system administrator has a batch job/daemon that closes login processes during certain times of the day/week or for for certain people. If this is happening when you are connecting to a server that is managed by someone else then you should talk to them about it. They may already know the answer.
 
Old 01-08-2007, 02:42 AM   #5
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie
Are you connecting to a server that is managed by some else? If so it is possible that the system administrator has a batch job/daemon that closes login processes during certain times of the day/week or for for certain people. If this is happening when you are connecting to a server that is managed by someone else then you should talk to them about it. They may already know the answer.
Hi again (and many thanks for taking care of this!),
the servers are owned by a commercial company. I could ask them then.

Many thanks,
Marco
 
Old 08-07-2007, 12:50 AM   #6
stupendus
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Hi all,
just to say that I found the solution to the problem; I've added this line:
ServerAliveInterval 5
in:
/etc/ssh/ssh_config
The company providing me internet access told me that the problem was due to the limited number of 'real' ipnumbers they have so from time to time I was losing my ipnumber and then getting a new one. They suggested to use public ip number, but it is expensive.
I found that that extra line fixes the problem...

Ciao,
Marco
 
  


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 manojg Linux - Networking 6 11-29-2008 12:43 AM
Connection reset by peer tkt Linux - Newbie 1 06-22-2005 10:48 AM
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 12:22 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