LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 31
ssh delay ?


HI,

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

s1 192.168.10.3
s2 192.168.10.4
s3 192.168.10.7

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 ?

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

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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)
ssh-add

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

Rep: Reputation: Disabled
Quote:
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
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Original Poster
Rep: Reputation: 31
Thumbs up

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


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 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


All times are GMT -5. The time now is 07:18 AM.

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