Operating System - HP-UX
1745801 Members
3124 Online
108722 Solutions
New Discussion юеВ

Re: SSH Authentification very slow on HPUX 11.31

 
jrobstewart
New Member

Re: SSH Authentification very slow on HPUX 11.31

We just upgraded ssh on our 11.23 machine to:

# ssh -version
OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8k 25 Mar 2009
HP-UX Secure Shell-A.05.20.014, HP-UX Secure Shell version

Same problem - slow interactive but fast with embedded commands. Our slow interactive problem was fixed when we crushed wtmp and wtmpx. Thanks, Olivier.

John
Mary A Mentillo
New Member

Re: SSH Authentification very slow on HPUX 11.31

Talked with hp support known issue starting with version 4.7. Emptied file and it worked. Decided to stay with 4.5 until new version is fixed

HP-UX Secure Shell Software - Logins Slower after Update to Version A.04.70.010
ISSUE:
User was running HP-UX Secure Shell-A.04.30.007 and all was working OK. He updated to a more current version (A.04.70.10) and now his logins take 10-15 seconds to complete. The delay appears after entering the password.

SOLUTION:
The newer version of the ssh daemon (/usr/bin/sshd) will read the entire file /var/adm/wtmps if it exists. Since this file grows without bound, it can become exceeding large and cause delays in the login process.

The man page for wtmps states:

Note that wtmps and btmps tend to grow without bound, and should be checked regularly. Information that is no longer useful should be removed periodically to prevent the file from becoming too large. Also note that wtmps and btmps are not created by the programs that maintain them. Thus, if these files are removed, login record-keeping is turned off.

If the size of the file is very large, it may be truncated with:

# cat /dev/null > /var/adm/wtmps

This should improve the login times. You do not need to restart the daemon.



sombriks
Advisor

Re: SSH Authentification very slow on HPUX 11.31

thanks a lot, it was my issue too.
Fontainhas Dias
New Member

Re: SSH Authentification very slow on HPUX 11.31

I've been feeling this symptoms for a while and the "reset" wtmps hints where very useful

# cat /dev/null > /var/adm/wtmps
as we don't use telnet (disabled)

Thank you all
EdsonS
Established Member

Re: SSH Authentification very slow on HPUX 11.31

Thanks a lot! It solve my problem too.