News for hackers. Stuff that matters.
Re:SSH Escape Sequences by vlunkr on Monday October 23, 2017 @10:42PM (#15538813)
Fortunately you only need to remember ~? since it tells you the rest.
Re:SSH Escape Sequences by Groxx on Monday October 23, 2017 @11:09PM (#15538902)
Unfortunately, ~? is two characters too many for me to remember a year later :|
Re:SSH Escape Sequences by anyfoo on Monday October 23, 2017 @11:18PM (#15538932)
Do you never have to terminate a stuck session? <enter>~. to do so is practically muscle memory. The other sequences I cannot remember either, since their frequency of use is several orders less for me, but ~? is pretty intuitive to find out.
Re:SSH Escape Sequences by laumars on Tuesday October 24, 2017 @03:20AM (#15539810)
Not the OP but I generally don't need to use <enter>~. because I have my terminal multiplexed in tmux so will kill the tmux pane rather than OpenSSH session.

The main reason I prefer to kill via tmux rather than OpenSSH is because sometimes I'll be connected several sessions deep (eg via a Bastian / SSH jumpbox or tmux itself might be running remotely) so the tmux kill is easier than having to remember whether I need to ~. or ~~.

But ultimate there is no right nor wrong way to do things here, it's all just a question of preference and habit.

Re:SSH Escape Sequences by Groxx on Tuesday October 24, 2017 @04:16PM (#15544883)
Typically I just wait for timeout, or open a new session (remote tmux session makes this quite painless). Plenty of other things to do, usually, waiting a couple minutes every week or three doesn't bug me enough to google.
Re:SSH Escape Sequences by majewsky on Tuesday October 24, 2017 @08:40AM (#15541102)
Since I didn't know about <Enter>~. until a few days ago, I usually `killall ssh` or the specific PID.