Operating System - HP-UX
1833780 Members
2058 Online
110063 Solutions
New Discussion

Re: SSH delayed login in HP-UX 11.11i

 
flower_2
Advisor

SSH delayed login in HP-UX 11.11i

we are facing delay in connecting server through ssh.

After entering the username it takes 15 seconds
for prompting for passwd for users from remote site and when we are trying connect from some other remote site it connecting fast but we have other servers which having good ssh connectivity.

please help us in solving the issue.
7 REPLIES 7
Andrew Young_2
Honored Contributor

Re: SSH delayed login in HP-UX 11.11i

Hi

There are two possible causes of delays with SSH. The first is the collection of entropy data to set up the secure connection. However that is usually the cause of the delay before being prompted for a username and password.

More likely the reverse lookup of the host address for the connecting user is failing. Check this by doing a last -R | head . The first listing should be your hostname that the server thinks you connected from. If it is an IP address then add an entry in the /etc/hosts file (or DNS) for that address.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
flower_2
Advisor

Re: SSH delayed login in HP-UX 11.11i

if the delay to make secure connection then for other servers in same lan getting connected quickly.what might be the reason.
flower_2
Advisor

Re: SSH delayed login in HP-UX 11.11i

we are using only ip address for connecting
Andrew Young_2
Honored Contributor

Re: SSH delayed login in HP-UX 11.11i

Hi.

Are they all running the same version of SSH? Are you running the Open SSH or HP's SecSH port?

What was the result for the
last -R command? Did it give the hostname or the IP address? If it gave the hostname do an nslookup hostname and see how quickly the name server responded.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Steven E. Protter
Exalted Contributor

Re: SSH delayed login in HP-UX 11.11i

Shalom,

Another possible cause.

Strong random number generation. Without the optional software providing this feature ssh can be slow in generating encrypted authentication information.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I

This will help a lot, requires a reboot.

Also if one of the NIC cards is getting ready to die you'll see this symptom.

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
flower_2
Advisor

Re: SSH delayed login in HP-UX 11.11i

thanks for your reply i will check and let u know .

cheers
arun
Jov
Honored Contributor

Re: SSH delayed login in HP-UX 11.11i

Hi,

To eliminate the potential delay due to name resolution, add the hostnames to /etc/hosts and update nsswitch.conf to have file before dns lookup.

Can you test scp between the two servers and see if you experience similar delays?


Jov