Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH is really slow to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mortman
n00b
n00b


Joined: 05 Mar 2005
Posts: 9

PostPosted: Mon Mar 07, 2005 10:55 pm    Post subject: SSH is really slow to start Reply with quote

My ssh is really slow to start. I've read on other threads about DNS reverse lookup, but I'm not sure what that's all about. I'm pretty sure my /etc/hosts file is correct as is /etc/resolv.conf.

The output I get when I run ssh -v is:

Code:
# ssh -v username@server
OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug1: Reading configuration data /etc/ssh/ssh_config


...and then it sits there for about thirty seconds before the next message (the connecting message) comes up.

Any ideas would be marvelous.
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Tue Mar 15, 2005 11:05 am    Post subject: Try Ethereal or tcpdump Reply with quote

Emerge the two invaluable tools
# emerge tcpdump
# emerge ethereal (if you have a GUI)

Then run
# tcpdump -vv -s 0 -i any port 53 or port 22

to observe the traffic. If there is a pause between DNS packet then its a DNS issue (and I'm betting it is).

If there is a pause between DNS and SSH, then its the SSHD daemon.

If there is a pause between SSH packets, then it may be the /etc/pam.d/sshd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum