LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03: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, 04: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: 88
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, 04:58 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I have moved this to Linux-Networking as you may get more responses there.
 
Old 10-07-2008, 06: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, 04: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, 04: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: 88
I'm happy you solved the problem, I must look at my boxes now!
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:53 PM.

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