Re:The text adventure game of exiting a Telnet session
by derefr on Friday January 31, 2020 @03:40PM
(#22205449)
That's how you gracefully shut down an SSH session, with the socket close initiated from the remote end (where the shell is running.)
\n~. is for gracefully exiting a stuck/hung SSH session (e.g. one where the remote isn't responding to input) without force-killing the SSH client itself (which might do bad things to the process group it lives in.)
Re:The text adventure game of exiting a Telnet session
by CamperBob2 on Friday January 31, 2020 @06:16PM
(#22206972)
Unfortunately not all Telnet servers support that.
Being the least interesting programmer on Hacker News, I don't always write code to handle Telnet-compatible ASCII input, but when I do, I always support ^D.
https://en.wikipedia.org/wiki/End-of-Transmission_character#...