9/04/2012

SSH login to a HP-UX is very slow

The ssh takes a long time to connect or log in.

Check why ssh-rand-helper is hanging around for such a long time.

It generates random number by running commands from /opt/ssh/etc/ssh_prng_cmds.

Any of the commands from ssh_prng_cmds can be a cause for slowdown.

For example if /var/adm/wtmp
/var/adm/btmp  is large, /usr/bin/last will take a while to run.

-rw-rw-r--   1 adm        adm          96420 Mar 17 15:13 wtmp

-rw-rw-r--   1 adm        adm        377685344 Mar 17 15:39 wtmps


Solution:

cp /dev/null /var/adm/wtmps

or 

# >/var/adm/wtmps
#>/var/adm/btmps

or comment out last command in the file

/opt/ssh/etc/ssh_prng_cmds


No comments:

Post a Comment

Popular Posts