Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I have a PC which was running Ubuntu 6 and I use PuTTY on a Windows box to ssh telnet into the linux machine. This has worked fine.
Now, I upgraded to Ubuntu 7, and now when I ssh in via Putty, the login takes about 5-6 seconds before I get the password prompt. I have PuTTY configured to specify the username, so I see:
Using username "xyz"
immediately (I don't know if that ssh or putty printing that...)
and then about 5-6 seconds later, I get the password prompt.
This is annoying to me because I routinely open/use/close these telnet sessions on a rapid basis.
How can I log the ssh login process to see what's causing the delay?
Any help would be appreciated.
Note: I did not change my PuTTY configuration, so it must be something related to the new Ubuntu that's causing the delay. Also, if I just type "ssh localhost" from the linuxpc itself, I don't see the delay. Also, from my windows pc, I can ping the linux pc with a turn around time of 0.02 seconds, so the basic connection is fine.
only thing that routinely casuses these kinds of delays are reverse dns lookups. can the server find the hostname of the client you're connecting from?
I installed wireshark on the linux pc and did a capture of this time period.
I see some ssh init, key exchange, diffie-hellman somethingorother, and encryped response packet all within .15 seconds.
Then there is: (time proto info) [time ref is first ssh message]
0.15 DNS "Standard query PTR <windows_ip>.in-addr.arpa"
0.15 DNS "Standard query response, No such name"
0.25 MDNS "Standard query PTR <windows_ip>.in-addr.arpa"
1.26 MDNS "Standard query PTR <windows_ip>.in-addr.arpa"
3.26 MDNS "Standard query PTR <windows_ip>.in-addr.arpa"
5.15 SSHv2 Encrypted response packet
I'm not terribly familiar with reverse DNS - is that what this is? It seems after the first DNS failed, then it tried multicast DNS whatever that is - apparently with no response.
he shoots... he scores! right so either look at setting up a local dns server (very very easy with dnsmasq), add details to /etc/hosts on the server machine so they know who the client is, or set UseDNS=NO in your sshd_config file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.