Login very slow waiting for password prompt

openSUSE 11.2 (i586)
IBM x3250

login is taking forever. Nothing is running, server is idle.
any ideas are greatly appreciated. We are new to this version of suse.

> ssh root@192.168.10.22
wait
wait
wait
wait
wait
finally get prompt.
Password:

Hi
Add some debug to your command to see what’s happening;


ssh -vv root@192.168.10.22

What about as a user rather than root and just su to root user? The other way is to use keys for authentication.

thanks for the info. I have the authentication keys set now, but it still takes a while to login. Something in sshd_config maybe?

debug1: Trying private key: /home/ads/.ssh/id_rsa
debug1: Trying private key: /home/ads/.ssh/id_dsa
debug1: read PEM private key done: type DSA
debug2: we sent a publickey packet, wait for reply

{Delay}

debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
debug2: channel 0: request shell confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
Last login: Fri Feb 4 07:46:52 2011 from 172.19.36.107

sys01-staging:~ #

Hi
What happens is you try the same as a user?

Wonder if it’s the X11 traffic (I have seen this with exceed connecting to solaris systems) and a busy network.

What about a non X11 session, using putty or something similar?

I had a similar problem as well. The way I fixed it was to modify /etc/ssh/sshd_config on the server side and uncomment this line


#UseDNS yes

to become


UseDNS yes

then change that line to become


UseDNS no

Then save the file. Then restart sshd on the server


rcsshd restart

Then try logging in again. That fixed my delay.

You are wonderful. My issue is fixed after changing UseDNS=No.

Thank you very much.

You’re wonderful, ah7013!
Fixed my problem. Thanks!

-Tom

If you get this error when you do ssh -vvv root@xx.xx.xx.xx:

Trying to reverse map address xx.xx.xx.xx

This means that there could be problems with the dns servers. Commenting these lines in /etc/resolv.conf will solve the issue as:

; generated by /sbin/dhclient-script
search ancd.in
#nameserver xx.xx.xx.xx
#nameserver xx.xx.xx.xx

:slight_smile: