LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-10-2009, 04:28 AM   #1
wastingtime
Member
 
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, 09:13 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration