Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-10-2009, 03:28 AM   #1
Registered: Sep 2004
Posts: 86

Rep: Reputation: 17
ssh hangs upon tcp errors or retransmission

I use a linksys BEFSX41 at a remote site. The router runs a site-to-site vpn with a third location.

The remote site periodically reestablishes the connection with the local site due to what appear to be a BEFSX41 bug (one of many...) While the BEFSX41 reestablishes the connection it is unable to do anything else so packets going through the router are delayed or lost; the hiccup often lasts 1 to 2 seconds.

I use ssh to connect to servers behind the BEFSX41. That works fine until the BEFSX41 has one of its hiccups; at that time the ssh freezes, the sometimes recovers, sometimes it doesn't.

I also run a pptp server behind the BEFSX41 and connects to it remotely through the BEFSX41. I sometimes run the ssh over the pptp. That makes the problem much more severe. The ssh freezes, however, the pptp remains robust (just with periodic hiccups due the BEFSX41 lousiness)

What configuration settings may be available with ssh (server or client side) to help it work over this unreliable connection?
Old 03-10-2009, 08:13 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sending keepalives should tell SSH the connection is still alive, but in your case with hiccups that short I wonder if it would do anything. I prefer running autossh for tunnelling since it will restart the connection if it dies or stops passing traffic.


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
TCP Retransmission in Information tab of Ethereal Linuxfan0001 Linux - Networking 1 06-18-2008 03:28 PM
TCP Retransmission & lost segments problem under Linux but not under XP debuser123 Linux - Networking 22 12-16-2007 04:34 PM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 01:05 AM
TCP retransmission and duplicated ack enjoyzj Linux - Networking 0 06-05-2004 06:19 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 PM.

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