Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-03-2009, 08:53 PM   #1
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Rep: Reputation: 31
ssh delay ?


i have 3 linux servers on same network, having ip/names


when i try to ssh from s1 to s3 it take 30sec (delay) prompting for password, whereas when i ssh from s2 to s3 it response me within 5 sec.
this is happening from last 2 months.

i can ssh from s1 to s2 without any delay.

Any idea why it takes a lot of time when ssh from s1 to s3 ?

Old 01-03-2009, 09:18 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Two things to look at are the UseDNS setting in /etc/ssh/sshd_config. Also check if one server has IP v6 enabled.

Also look at any differences when logging in with "ssh -v" or even "ssh -vv" to increase the verbosity. Is one method being tried for one server but not the other.

Are these two servers on the LAN or across the internet?

Consider using public key authentication if SSH is exposed to the internet. You can protect the private keys (on the client) with a passphrase and then use:
eval $(ssh-agent)

to be able to log in to your servers, after entering the pass phrase once.
Old 01-03-2009, 09:34 PM   #3
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Originally Posted by jschiwal
Two things to look at are the UseDNS setting in /etc/ssh/sshd_config...
To expand on this, if you find that DNS lookups are the cause of the slowdown, I'd recommend correcting your /etc/resolv.conf entries on the offending server (rather than turning off UseDNS).
Old 01-03-2009, 09:49 PM   #4
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 522

Original Poster
Rep: Reputation: 31
Thumbs up

Gr8 work, i just added host entry in /etc/hosts
thanks a lot.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delay in SSH login & find apache server configure option tanveer Linux - Server 3 07-07-2008 06:00 AM
Delay in SSH login.. lingeek Linux - Security 2 04-04-2006 05:38 PM
xinetd + ssh = login delay Shawn_Lewis Linux - Networking 0 08-19-2005 03:26 PM
ssh password prompt delay long while chaze Linux - Networking 1 04-14-2005 10:03 PM
Too much delay in ftp/ssh to start anmsg Linux - Networking 8 10-15-2004 06:20 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration