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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-02-2006, 04:49 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSe, Debian
Posts: 26
Rep:
|
Ssh freezes in unpredictable time
Hello,
I think this is a very basic problem but not for me. When I do ssh from my laptop (through wlan and wan) to my other computer, the session freezes in some time idling.
I have set to my other computerŽ s sshd_config TCPKeepAlive yes and KeepAlive yes, I have also tried them with no. What is this about?
Also the kernel tcp_keepalive_time seems to be ok:
sudo cat /proc/sys/net/ipv4/tcp_keepalive_time
7200.
I appreciate any suggestions, this is really annoying me!
edit:
hereŽ s a bit more info, when the connection freezes I can still see that it established from netstat in the other computer. Is it possible somehow to try to attach back to this connection? Anyway that wouldnt solve the actual problem but it would be nice to know too.
Last edited by positrox; 03-02-2006 at 04:51 PM.
|
|
|
03-03-2006, 10:09 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Check your ifconfig (and iwconfig, if wireless), as well as 'netstat -t -s' statistics to see if you are getting a high error rate when the problem occurs.
|
|
|
03-03-2006, 11:53 AM
|
#3
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
I am seeing the exact same thing. I haven't taken much time to debug it yet, as I'm usually in and out with ssh, rarely idle, so it doesn't pop up for me terribly often given my usage pattern.
---
Maybe we can compare notes. My setup:
client end: Debian Sarge, ssh version 1:3.8.1p1-8.sarge.4
server end: Debian Sid, openssh version 1:4.2p1-5 (provides ssh-server)
After only a few minutes of idle time it will lock up on me. ipconfig doesn't show any errors (checked per suggestion from macemoneta). Both client and server ends still show an ESTABLISHED connection after the lockup. New ssh connections can be created while the old one is locked up. Killing the window on the client end is the only recovery I've found for the hung client. This does not kill the process on the server end. A manual kill -9 on the connection's sshd process is required to clear the server.
I do NOT see any lockups when this same client connects to a totally different server, in my case a server running Solaris 7 (yeah, I know it's old ... not my machine though) This connection can sit idle for hours without lockup.
One thing that caught my eye when viewing netstat output on the client and server after the connection was locked: The client end was showing the ESTABLISHED connection using tcp while the server end was showing tcp6. I have no idea if this is at all relavent, but it caught my eye and I will try to look into it further to rule this out as a factor.
|
|
|
03-03-2006, 03:12 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSe, Debian
Posts: 26
Original Poster
Rep:
|
Hi
My setup is the following
Client end: Suse 10.0 openssh-4.1p1-10.4
Server end: Debian 3.1 ssh 3.8.1p1-8.sarg (OpenSSH)
Today I tried to scp from the suse machine to the debian machine and it gave me this:
Protocol major versions differ: 2 vs. 1
lost connection
So that could cause the freezing too. I think I have to compile the newest ssh for my Debian box and see if that helps. Though, I dont have much time so it could take some time to complish that.
Haertig, if you are less busy than me, please let us know if the installation of the new version helps  .
Cheers
|
|
|
03-03-2006, 11:09 PM
|
#5
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
Further info:
Using Putty v0.58 ssh client from a Win2000 box to connect to that same Debian SID server above ... no lockups.
Using Putty v0.56 from WinXP ... no lockups either.
|
|
|
03-06-2006, 10:03 AM
|
#6
|
Senior Member
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337
|
On server end, changed sshd ListenAddress from :::: to 0.0.0.0 No difference. Still locked up (when connecting from client on Debian Sarge). 
|
|
|
03-11-2006, 03:06 PM
|
#7
|
LQ Newbie
Registered: Nov 2005
Distribution: SuSe, Debian
Posts: 26
Original Poster
Rep:
|
Have you tried with different routers and from different clients? My friend tried with ssh and putty but didnt notice freezing. I heard that in some netgear and linksys routers there is a problem which causes session freezing.
I dont right now have an opportunity to try via different routers but I will keep in touch. I want to solve this very annoying problem.
|
|
|
All times are GMT -5. The time now is 07:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|