Operating System - HP-UX
1748134 Members
3635 Online
108758 Solutions
New Discussion юеВ

SSH login is extremely slow

 
SOLVED
Go to solution
TalH
Advisor

SSH login is extremely slow

Hi,

I have HPUX 11.31 on IA64 that during login with SSH only (with any user, simple or root, local or NIS) after I type the password and press enter it takes more than 2 minutes to get command prompt.

With telnet I get the command prompt immediately.

The load on the system is 99% idle, and I checked and it's not DNS lookup issue or /etc/nsswitch.conf problem.

 

Any idea how to fix it?

 

Thanks,

Tal

6 REPLIES 6
Steven Schweda
Honored Contributor

Re: SSH login is extremely slow

 
TalH
Advisor

Re: SSH login is extremely slow

I run the ssh -vv few times and the delay (about 140 seconds) was between the 2 last lines:
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072

Sachin Rajput
Advisor
Solution

Re: SSH login is extremely slow

check your wtmp and btmp files size .

truncate them and then check if it helps .


Sachin Rajput
==================


Sachin Rajput
================
Dennis Handly
Acclaimed Contributor

Re: SSH login is extremely slow

Instead of creating a new topic, please continue your previous one:

http://h30499.www3.hp.com/t5/System-Administration/HPUX-slow-login/m-p/5601045/

TalH
Advisor

Re: SSH login is extremely slow

Thanks!
Sachin Rajput
Advisor

Re: SSH login is extremely slow

Do you want to know why this causes the slowness .


.. while ssh login after you enter the password .

It fetches your last successfull login details from wtmp and if the size of the file is very big it will take more time to analyse the file and fetch the details .

Hence the slowness in connection ..

Do not forget to assign the kudoes ... :-)


Sachin Rajput
================