Operating System - HP-UX
1748089 Members
5062 Online
108758 Solutions
New Discussion юеВ

Re: ssh authentication failing in trusted mode

 
Dusty Mjoen
Advisor

ssh authentication failing in trusted mode

Hi,

I am trying to use putty to access a server that is in trusted mode via ssh. As soon as I enter my password it blows up with "server unexpectedly closed network connection."

I have run debug mode, and it appears the authentication is succeeding. This worked fine before trusted mode. Also, it works when I use public key authentication. Any ideas?

Thanks!
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: ssh authentication failing in trusted mode

Shalom,

sshd public key authentication works the same trusted and untrusted, I've used it both ways.

Ideas:
1) Standard, permissions and ownership on the home and .ssh directory. Compare it to a working system.
2) Converting to trusted mode expired the user id
3) Bug in sshd. go to http://software.hp.com and get the latest version.

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
skt_skt
Honored Contributor

Re: ssh authentication failing in trusted mode

post

#ssh -vvv root@desthostname
Dusty Mjoen
Advisor

Re: ssh authentication failing in trusted mode

Hi SEP,

The permissions look good, and I created a new user to rule out the expiration theory. I also loaded the new version of ssh. Still no luck. Thanks for the ideas.
Dusty Mjoen
Advisor

Re: ssh authentication failing in trusted mode

Santhosh,

I am attaching the output.
skt_skt
Honored Contributor

Re: ssh authentication failing in trusted mode

debug1: Entering interactive session.
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t3 r-1 i0/0 o0/0 fd 5/6 cfd -1)

debug3: channel 0: close_fds r 5 w 6 e 7 c -1
Connection to dns3 closed by remote host.
Connection to dns3 closed.

after the authentication , is it complaining about the already open connection?(not sure)

which is the new ssh version you tried?is it HP-UX 11.00?are you using differnet ssh version at the source and the target?
Darrel Louis
Honored Contributor

Re: ssh authentication failing in trusted mode

Dusty,

Can you check if you can login via telnet.
If it works via telnet, check your sshd_config file (Pam Auhtentication) or if you're using the latest sshd software.

Also check if the account is locked:
- /tcb/files/auth/d/
- /usr/lbin/getprpw -m lockout $USER

unlock a user:
/usr/lbin/modprpw -v $USER
/usr/lbin/modprpw -l -k $USER
/usr/lbin/modprpw -v $USER

GoodLuck
Darrel

Dusty Mjoen
Advisor

Re: ssh authentication failing in trusted mode

Thanks for the many ideas, I appreciate them all.

I don't know if it is complaining about the open connection or not, but I wouldn't think so.

I am using secure shell version 4.70.009, on HP-UX 11.11. I am using ssh2 protocol on source and target.

According to the getprpw command the account is not locked.
skt_skt
Honored Contributor

Re: ssh authentication failing in trusted mode

Looking at the ssh version , 4.70.009, does not seem to be a bug , which is my most prefeered version for 11.11

while version 04.30.014 for 11.00