Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-21-2005, 05:00 AM
|
#1
|
Member
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57
Rep:
|
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
|
|
|
10-21-2005, 07:06 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
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.
|
|
|
10-21-2005, 11:28 AM
|
#3
|
Member
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57
Original Poster
Rep:
|
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?
|
|
|
10-29-2005, 11:36 AM
|
#4
|
Member
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435
Rep:
|
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.
|
|
|
10-29-2005, 04:42 PM
|
#5
|
Member
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103
Rep:
|
this happened to me whenever the kernel routing tables in the server were incorrect
|
|
|
12-09-2005, 12:03 AM
|
#6
|
LQ Newbie
Registered: Sep 2002
Posts: 12
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|