Monday, May 6, 2024
148
rated 0 times [  148] [ 0]  / answers: 1 / hits: 89615  / 3 Years ago, tue, june 29, 2021, 12:51:35

From time to time, SSH sessions to my servers just freeze up and then neither Ctrl+C nor Ctrl+ do anything.



How do I quit the session without just closing the Terminal it's in?






Clarification:



The session is locked as in, no keys are transmitted to the server. I'd like to shut it down gracefully, such that the user isn't logged in anymore.



I know I can kill the SSH client, but that will, in time, make the "2 users" info message I get from uptime meaningless. I'd like to know how many users are really logged in.


More From » command-line

 Answers
4

To disconnect a locked-up ssh session, typeEnter ~.



A full list of escape codes can be found in the ssh manpage or by typing ~?.


[#44228] Wednesday, June 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anxietunnel

Total Points: 66
Total Questions: 120
Total Answers: 115

Location: Norway
Member since Sat, Mar 4, 2023
1 Year ago
;