Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: ssh broken pipe
PostPosted: Thu Mar 28, 2013 6:23 pm 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
My ssh connection keeps getting abruptly disconnected every time i run a node command, are there any essential tips so my connection stays alive? is there a log file for ssh where I can find out why It keeps disconnection on node program calls?

This happens like 5 times within a 10 minute span, it has become very annoying.

-Thank you guys.


Top
   
 Post subject: Re: ssh broken pipe
PostPosted: Thu Mar 28, 2013 6:42 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
You could check the SSH logs but don't count on it logging anything helpful. It likely logs to /var/log/messages.

If this is due to your network connection dropping dead every so often you could turn off TCPKeepAlive in /etc/ssh/sshd_config:
Code:
TCPKeepAlive no

And then restart sshd.

Turn on verbose logging while you are editing sshd_config:
Code:
LogLevel VERBOSE

Verbose logging really should be the default. Without it sshd doesn't even log what key was used for authentication.


Top
   
 Post subject: Re: ssh broken pipe
PostPosted: Thu Mar 28, 2013 7:40 pm 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
sednet wrote:
You could check the SSH logs but don't count on it logging anything helpful. It likely logs to /var/log/messages.

If this is due to your network connection dropping dead every so often you could turn off TCPKeepAlive in /etc/ssh/sshd_config:
Code:
TCPKeepAlive no

And then restart sshd.

Turn on verbose logging while you are editing sshd_config:
Code:
LogLevel VERBOSE

Verbose logging really should be the default. Without it sshd doesn't even log what key was used for authentication.

Thanks! I hope this helps.


Top
   
 Post subject: Re: ssh broken pipe
PostPosted: Thu Mar 28, 2013 8:08 pm 
Offline
Junior Member

Joined: Sat Feb 11, 2012 3:29 pm
Posts: 26
nthvision wrote:
sednet wrote:
You could check the SSH logs but don't count on it logging anything helpful. It likely logs to /var/log/messages.

If this is due to your network connection dropping dead every so often you could turn off TCPKeepAlive in /etc/ssh/sshd_config:
Code:
TCPKeepAlive no

And then restart sshd.

Turn on verbose logging while you are editing sshd_config:
Code:
LogLevel VERBOSE

Verbose logging really should be the default. Without it sshd doesn't even log what key was used for authentication.

Thanks! I hope this helps.


Unfortunately this did not help, does anyone else have any suggestions? trouble shooting tips?


Top
   
 Post subject: Re: ssh broken pipe
PostPosted: Thu Mar 28, 2013 8:45 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Are you behind some sort of NAT or stateful firewall that might have a (really) short session timeout? Are you using an ssh port that isn't 22?

Might be interesting to run Wireshark on the local end when this happens.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group