LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-15-2010, 02:52 AM   #1
airekans
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
ssh freeze after logging to the CentOS 5.4 server


Hi all,

I have 2 servers running CentOS 5.4 Final, one is 32 bit and the other is x86_64.
When I ssh to either server, the session will freeze after a while and I cannot type anything except I close the term. This has happened before, and I thought that was caused by iptables' rules.
But now I turned off iptables and the problem remains.

I tried tcpdump on my machine(client running OpenSUSE 11.2), and it shows that after the freezing, client will still sent ack message to the server.
So I think this may be caused by the server.
Note that I can ping the server smoothly.

Does anybody meet this problem before? How can I solve this problem?? Or is there any tip to dig out the problem?

Thanks in advance.
 
Old 11-15-2010, 12:49 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
its not freezing.

the ssh session is timing out. configuration file is /etc/ssh_config

the parameter you are looking to set is ServerAliveInterval
 
Old 11-16-2010, 01:55 AM   #3
airekans
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
I think you are right. After setting the ClientAliveInterval on the server and ServerAliveInterval on the client, the problem seems running away.
Also, the tip given in the FAQ of OpenSSH is helpful: http://www.openbsd.org/openssh/faq.html#2.12
 
  


Reply



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
[SOLVED] Slow SSH Login --> CentOS 5.0 --> VMware Server --> Plesk Control Panel 8.4.0 bskrakes Linux - General 12 01-05-2015 05:32 AM
Logging into linux server via SSH - allowed ip addresses chips11 Linux - Newbie 9 08-27-2010 03:43 PM
Logging in to SSH server with Keys SuperDude123 Linux - Server 6 05-05-2009 10:30 PM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
4 second freeze on keystroke when logging into kde 3.3 on debian striderstrahan Linux - Software 1 09-07-2004 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:03 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
Open Source Consulting | Domain Registration