HP-UX Knowledge Base
1848620 Members
1982 Online
104033 Solutions
New Article

SSH takes too much time while login

Symptoms

Initial SSH login to the HP-UX 11.31 is slower without any errors. 

Diagnosis



Check the /var/adm/wtmp and /var/adm/wtmps files. IF it is huge in size. Move the file and re-create the file.

 

Found that the  /var/adm/wtmps file is very huge. 

Solution

 

Take a copy of the existing wtmps file and run the below command to empty the file. 

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

 

This command empties the file and  doesnt corrupt the wtmps file. 

 

Alternatively you also delete and recreate this file. 

 

Issue resolved after emptying the wtmps file. 

Version history
Last update:
‎02-06-2012 09:14 PM
Updated by:
Contributors
Tags (2)