1753830 Members
8791 Online
108806 Solutions
New Discussion юеВ

SSH login takes forever

 
SOLVED
Go to solution
Andreas Tausch
Occasional Advisor

SSH login takes forever

Hi,

I have a weird problem running HP-UX OpenSSH 3.9 on a HP-UX 11.11 system.

On logging in via SSH2 from the one network anything works fine. Connecting from another network requests loginname at once but then it takes about 30 seconds for the password request to appear. Once being logged in to the system there are no more problems coming up.

Any ideas?
5 REPLIES 5
Peter Godron
Honored Contributor
Solution

Re: SSH login takes forever

Andrea,
have tried ssh -w ?
And have you cheked your resolv.conf, nsswitch.conf and /etc/hosts files?

please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1021839
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=971375
Jaime Bolanos Rojas.
Honored Contributor

Re: SSH login takes forever

Andreas,

Make sure that your 3 resolution files are configured properly, /etc/resolv.conf, /etc/nsswitch.conf and /etc/hosts files.

Start from simple to more complicated, setup the /etc/hosts file with the ip's and names of both machines that are connecting, you should notice a different in speed.

Regards,

jaime.
Work hard when the need comes out.
Steven E. Protter
Exalted Contributor

Re: SSH login takes forever

Shalom,

Try

ssh -vvv

See when the delay occurs.

I like the DNS resolv.conf idea.

tail -f /var/adm/syslog/syslog.log on the server and see what happens during connect.

Newer versions of OpenSSH often deal with performance issues: http://software.hp.com
Search for Secure Shell

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andreas Tausch
Occasional Advisor

Re: SSH login takes forever

Hi guys,

thanks for your input. It turned out to be a crappy configured resolv.conf, as you all figured. Our DNS servers don├В┬┤t transfer the reverse lookup zones for the network the client├В┬┤s tried to connect from, thus the timeout for the reverse name lookup.

By the way, it had nothing to do with the OpenSSH release (3.91) which I updated to V4.30 to be sure about that.

Andreas Tausch
Occasional Advisor

Re: SSH login takes forever

Thanks