LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-20-2007, 02:29 PM   #1
xafwodahs
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
slow ssh response after upgrate to ubuntu 7


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.
 
Old 04-20-2007, 03:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 04-23-2007, 11:18 AM   #3
xafwodahs
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
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.

What would cause this and how to do fix it?

Thanks.
 
Old 04-23-2007, 11:23 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
The server tries to get the name out of the IP (DNS ptr).

You should try to reconfigure the ftp server so that it doesn't do this anymore.
 
Old 04-23-2007, 02:34 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 04-24-2007, 05:20 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by acid_kewpie
he shoots... he scores!
This one was easy, you won't get a free beer for this
 
Old 04-24-2007, 12:45 PM   #7
xafwodahs
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
"UseDNS no" worked fine. Thx much!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow SSH response fr0zen Linux - General 7 11-19-2011 12:50 PM
SSH Slow Response/Session Closing FourierXForm Linux - Networking 3 08-07-2006 09:56 AM
Keyboard response slow Sparkfist Linux - Hardware 0 05-01-2006 03:07 PM
[SOLVED] Q3: Slow network response mattz40 Debian 9 04-05-2005 09:07 AM
Slow response as ..... umok Linux - Newbie 4 07-11-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 AM.

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