LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-07-2008, 04:44 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
slow ssh authentication


I installed 2 new Centos 5.2 boxes.

Both use Key authentication for ssh, both use the same sshd_config.
Same user and key even.

Making an ssh connection to one system logs me in immediately, the other one takes almost 30 seconds before I get my prompt. I went through all settings disabled iptables but can't see any reason why this is happening.

Any suggestions are appreciated.
 
Old 10-07-2008, 05:33 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
I have a similar issue, using some ubuntu boxes as static IP boxes, caching packages to install across network. Some respond immediately on ssh, others take a few seconds, others take up to a minute. I'm resigned to it at this stage! I think it may have something to do with network latency at particular points.
 
Old 10-07-2008, 05:58 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
I have moved this to Linux-Networking as you may get more responses there.
 
Old 10-07-2008, 07:26 PM   #4
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
I don't think its latency as they are in the same IP subnet and physically on the same switch even, the path to each box is the same basically.
 
Old 10-10-2008, 05:26 AM   #5
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
I found the reason, related to RDNS and in my resolv.conf I had typo in the IP of the DNS server listed first.
 
Old 10-12-2008, 05:28 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
I'm happy you solved the problem, I must look at my boxes now!
 
  


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
scp without authentication and ssh with authentication? bkcreddy17 Linux - Server 7 10-08-2008 02:33 AM
ssh authentication slow now linuxhippy Slackware 1 03-08-2007 09:29 PM
Slow authentication twantrd Linux - Enterprise 4 09-23-2004 03:29 AM
Authentication slow with Sendmail jgaraas Linux - Software 0 05-01-2003 12:09 PM
Help Authentication Dead Slow kirankv Linux - Newbie 3 03-21-2003 04:07 PM


All times are GMT -5. The time now is 05:16 PM.

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