LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-21-2005, 05:00 AM   #1
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Rep: Reputation: 15
Putty Login Delay


Hi all,

I have had a shufty through the forums, but it doesn't appear that anyone else has had this problem? Am I unique??

When I launch putty from a Windoze PC to connect to a SUSE 9.2 PC, it immediately asks for:

login as:

I type root, and hit enter. There is then about a 27 second delay before it asks for the password. I then type the password and hit enter, and then it gives me the ~# prompt.

Anyone know why there is a 'long' delay before the password is asked for?

It's quite annoying when you have to login and out frequently for testing purposes.

Is it possibly something to do with PAM/SSH etc? I have a rudimentary knowledge of Linux, but cannot work out why this is happening.

Any help appreciated.

Many thanks,

Andy
 
Old 10-21-2005, 07:06 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
When I launch putty from a Windoze PC to connect to a SUSE 9.2 PC, it immediately asks for:
login as:
I type root, and hit enter.

First of all you should not log in as root regardless of the network service you're accessing, please turn "PermitRootLogin" off in sshd_config, login as unprivileged user then use sudo to perform root account tasks.


There is then about a 27 second delay before it asks for the password.
I'd first check the system logs if there are any sshd/PAM entries you need to check, then sshd_config for VerifyReverseMapping set to "on", then check /etc/pam.d/system-auth for "nodelay" in the passwd pam_unix line. If that doesn't work, consider running sshd in triple debug mode on a different port and log the output.
 
Old 10-21-2005, 11:28 AM   #3
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
ok, will change my login habits. thanks for the tip.

- where are the system logs (probably a dumb question, but i've never had to look at them before)
- in my sshd_config there is no line (or mention) of VerifyReverseMapping
- I don't have a /etc/pam.d/system-auth file

Am i missing something?
 
Old 10-29-2005, 11:36 AM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Check your sshd_config for the parameter GSSAPIAuthentication. Make sure it's set to "no". That's the default, but I found out recently that the Fedora Core 4 distribution of sshd_config has the parameter set to "yes" (though I realize your distro is Suse). Having it set to yes causes a DNS lookup in an attempt to resolve _kerberos.<FQDN>.

I found this by using ethereal to capture ethernet packets during the ssh login transaction. You might try doing the same to see if you can track down the source of the delay.
 
Old 10-29-2005, 04:42 PM   #5
FliesLikeABrick
Member
 
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103

Rep: Reputation: 15
this happened to me whenever the kernel routing tables in the server were incorrect
 
Old 12-09-2005, 12:03 AM   #6
TomCruise2002
LQ Newbie
 
Registered: Sep 2002
Posts: 12

Rep: Reputation: 0
I am encountering the same problem - when I log into the server using SSH, the password prompt appears. After I enter the password, I get a delay of about 12 sec before I get into the session.

What did you change wrt kernal routing tables? Which files did you alter?

I'm using Redhat Linux Enterprise: 2.4.21-4.EL

I've checked these:
/etc/ssh/sshd_config
#VerifyReverseMapping no
/etc/pam.d/system-auth
auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok

But these settings are the same as my other server which I don't have problems with.
 
  


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
xinetd + ssh = login delay Shawn_Lewis Linux - Networking 0 08-19-2005 03:26 PM
Putty telnet question (Login Screen goes away) wardialer Linux - Newbie 1 10-16-2004 03:51 PM
Delay during GNOME login/logout -> devfsd Romendo Mandriva 0 09-02-2004 04:49 PM
Need help with PUTTY unixfreak Linux - Software 2 08-30-2004 06:06 PM
Other than putty KaktusKnight Linux - General 4 05-07-2003 01:28 PM

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

All times are GMT -5. The time now is 02:33 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