HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

SSH client not terminating after logout

 
yc_2
Regular Advisor

SSH client not terminating after logout

Hi,

We have an rp4440 running HP-UX 11.11. Sometimes, the ssh client will not terminate after logout (ie: exit) from the ssh session.

Any pointer is appreciated.
3 REPLIES
Ganesan R
Honored Contributor

Re: SSH client not terminating after logout

Hi,

Do you see the tty session exist after logout in "w" or "who -u" output?

#who -u
Best wishes,

Ganesh.
Mel Burslan
Honored Contributor

Re: SSH client not terminating after logout

press

~.

this is the terminate immediately command for the sshd.

HP's ssh implementation, sometimes disconnects your tty before terminating the session. When this happens, you will see an sshd running on another terminal session but instead of the tty/pty name, you see something like notty. When that happens, you either need to kill that PID from another connected session or hit enter a couple of times then hit ~. (tilde, then dot). This should disconnect your session for sure.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Viktor Balogh
Honored Contributor

Re: SSH client not terminating after logout


are you using putty as a client? if you are forwarding ports this could be the problem, putty doesn't exit immediately, it will wait for the end of traffic on those ports.

****
Unix operates with beer.