1754919 Members
3163 Online
108827 Solutions
New Discussion юеВ

Re: ssh server slow

 
letters
Occasional Advisor

ssh server slow

Hello,

When i connect to a HPUX11.31 in ssh ; i type my login and i must wait 30-40 seconds before to see appear the prompt of password !
What' s the problem ?
Thanks
18 REPLIES 18
sangilak
Trusted Contributor

Re: ssh server slow

Hi,


Not sure which version of SSH you have currently installed, but I remember to have read somewhere that the latest version 5.60 addresses some slow loging issues.

It can be downloaded from:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA


Hope that helps,

sangilak
letters
Occasional Advisor

Re: ssh server slow

I think that it's a network problem because i have also the same problem with sftp
Viktor Balogh
Honored Contributor

Re: ssh server slow

I bet you have a large wtmps file, the solution is to purge that file:

# > /var/adm/wtmps

Now ssh should work fine. It is a known bug...
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: ssh server slow

"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."


see this thread:

http://h30499.www3.hp.com/t5/System-Administration/SSH-Authentification-very-slow-on-HPUX-11-31/m-p/4361622#M346130

****
Unix operates with beer.
Steven Schweda
Honored Contributor

Re: ssh server slow

> [...] HPUX11.31 in ssh [...]

ssh -V

Actual output from "uname -a" wouldn't hurt,
either.

> What' s the problem ?

Is this a new problem where things have
worked properly before?

> I think that it's a network problem because
> i have also the same problem with sftp

SSH and SFTP are not different enough that
that tells you anything. If other,
_different_ services (like, say, FTP or
Telnet), also see a delay, then you may have
a DNS problem. A Forum search for keywords
like:
ssh slow dns
should find many old threads which describe
the common DNS problem, and how to fix it.
uz
Occasional Advisor

Re: ssh server slow

I purged wtmps and wtmp but it's the same
uz
Occasional Advisor

Re: ssh server slow

[root@X-4 /opt/mozilla]# ssh -V
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version
[root@X-4 /opt/mozilla]# uname -a
HP-UX X-4 B.11.31 U ia64 069218587 unlimited-user license
Steven Schweda
Honored Contributor

Re: ssh server slow

> HP-UX Secure Shell-A.04.50.011[...]

Not the latest version, is it? (But that
should not be the problem here.)

> Is this a new problem where things have
> worked properly before?

Still wondering.

> [...] A Forum search [...]

Did you look? On the SSH server:

nslookup
Bob_Vance
Esteemed Contributor

Re: ssh server slow

Be sure that the ipnodes entry is same as the hosts entry in

/etc/nsswitch.conf


## grep -e host -e node /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
ipnodes: files [NOTFOUND=continue UNAVAIL=continue] dns


bv
"The lyf so short, the craft so long to lerne." - Chaucer