Operating System - HP-UX
1822551 Members
2947 Online
109642 Solutions
New Discussion юеВ

SSH login hangs after username is entered

 
Eric Bakken
Regular Advisor

SSH login hangs after username is entered

Hello all,

More than 50% of the time when I try to login to our 9000 I enter my username and nothing happens. I then have to cancel my connection and try again. after a couple tries it usually allows me to enter my password.

I believe we only get this problem when connecting from our desktop machines. I havn't been able to recreate this problem on my laptop (via vpn) or another server. Any Ideas? Thanks in advance.

-Eric
9 REPLIES 9
Denver Osborn
Honored Contributor

Re: SSH login hangs after username is entered

Is there anything logged by sshd in the /var/adm/syslog/syslog.log when you have the login problem?

-denver
Steven E. Protter
Exalted Contributor

Re: SSH login hangs after username is entered

Shalom,

Try ssh -vvv user@hostname

Then post back what the diagnostics say the hang is on.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Franky_1
Respected Contributor

Re: SSH login hangs after username is entered

Hi Eric,

you can try to enter ssh with the -v (or -vv / -vvv to get even more detailed information) option to obtain more specific information which will give you some hints for the problem solution

Regards

Franky
Don't worry be happy
OldSchool
Honored Contributor

Re: SSH login hangs after username is entered

ssh also makes use of reverse lookups. check forward and reverse lookup of the client fromt the server side.

if you find issues there, check /etc/nsswitch.conf and /etc/resolv.conf
OldSchool
Honored Contributor

Re: SSH login hangs after username is entered

disregard my previous...i missed the "after username" part
Eric Bakken
Regular Advisor

Re: SSH login hangs after username is entered

I've tried the above suggestions and the only thing in syslog that makes any sense is this:

Jan 15 09:29:07 chip syslog: 1-09:29/#J11607/11720/NETWORK PROCESS IS NOT ACTIVE


I thought that maybe this started when we all installed new versions of reflections so I uninstalled it from my computer and have been using putty but the problem is still there.
Eric Bakken
Regular Advisor

Re: SSH login hangs after username is entered

Update:

It has stopped timing out and now just takes about 30 to 40 seconds to bring up the password prompt.
Jennifer Lynn
New Member

Re: SSH login hangs after username is entered

Hi
We've had this problem before
not sure if ours was the same as yours
but for us it happened with autofs and the home directories

It was a nfs mounted home directory
and restarting autofs helped
skt_skt
Honored Contributor

Re: SSH login hangs after username is entered

is that taking 30-40 seconds when tried from laptop too? what about connecting from telnet?

if telnet connection is faster you may have to tune the sshd_config

you may try commenting /etc/opt/ssh/ssh_prng_cmds as below. Those last commands are executed when ever ssh login is tried.

as below

#"last" /usr/bin/last 0.01
> #"last log" /usr/bin/last 0.01