Operating System - HP-UX
1837975 Members
3152 Online
110124 Solutions
New Discussion

Re: ssh stops working after changing to trusted system

 
SOLVED
Go to solution
support_5
Super Advisor

ssh stops working after changing to trusted system

Hi all,

I have installed HP-UX Secure Shell A.03.81.002 on a HP-UX 11.i box. however, when I convert the system to a trusted system, ssh stops working. I haven't seen this behaviour on any other system I have converted to trusted systems. Telnet works fine, however, ssh asks for your password, then says "Connection closed by 172.xx.xx.xx" (server IP). When I untrust the system, I can login again. Interestingly, I have set up the keys so that I can ssh without a password, and this works fine again after I unconvert the system.

Does anyone know what I have done wrong here? I'm stumped.

Thanks

Andy
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: ssh stops working after changing to trusted system

Hi Andy,

Does the same version work on another HP-UX box?.

I would suggest to look at syslog.log file and see if there are any errors logged. Else, run sshd in debug mode and see if there are any clues. Start it at a different port so that you won't affect the running daemon.

#./sshd -d -p 12121

On the other server run ssh with -vvv option

$ssh -vvv

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
support_5
Super Advisor

Re: ssh stops working after changing to trusted system

Hi,

Thanks for the tips, they were helpful in resolving the problem. It was a problem with the /etc/nsswitch.conf file. It had the wrong setting for passwd. I changed it from 'compat' to 'files' and it worked fine after that.

I figured it to be nsswitch because in debug mode, it was mentioning PAM, and that made me think of nsswitch.conf.

Thanks again!

- Andy