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.
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.