Server Management - Systems Insight Manager
1834478 Members
3087 Online
110067 Solutions
New Discussion

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed

 
AFI HP-UX ADMIN
Advisor

SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed


I am trying to create new command line tool (SIM 5.0) to do some tasks on managed servers. For some it works great. However, if the task takes longer than 30 seconds to complete, it fails with an ssh error:

Ssh Operation failed for node: server_name SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed

Is there a timeout value somewhere for ssh that's causing this behavior?

Thanks
command line # or GUI ?
6 REPLIES 6
Rob Buxton
Honored Contributor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed

Not that I'm aware of but I don't run HP-UX which I'm guessing could be the client. You could test by just connecting with a SSH client and leaving it open and seeing what happens.
AFI HP-UX ADMIN
Advisor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed


Thanks for the reply.

Yes this is an HP-UX server to HP-UX server thing. A normal ssh works just fine...no disconnect.

I also see that if the command that I use has regular output, it does not disconnect. Only if it takes more than 30 seconds to have any output. Then it drops the connection.

Any other ideas out there?
command line # or GUI ?
Steven Baillie
Trusted Contributor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed

hi


I am getting the same problem and have posted it before and got no replies.

see

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960091


good luck

let me know if you get a solution

steven
AFI HP-UX ADMIN
Advisor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed


It turns out a change to the sshd_config makes this error go away:

These are the settings I use but may not be right for you:

ClientAliveInterval 10
ClientAliveCountMax 3

Then restart ssh and you are good to go...
command line # or GUI ?
AFI HP-UX ADMIN
Advisor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed


See message above.
command line # or GUI ?
Steven Baillie
Trusted Contributor

Re: SSH_UNEXPECTED_TERMINATION:Unexpected termination: Socket closed

Thanks for posting the solution.


It fixed the problem for me too.


If you post the solution in my message then I can assign you points.


thanks again

steven