OpenSSH Shortcut: Escaping a Session Without Disconnecting
One thing you may not know about SSH is that it has an escape character: ~. To try it out, hit return (the escape character is only picked up at he start of a line, so you must make sure you are) at the console in an active SSH session, then enter ~. Nothing will show on screen; so far so good. Next, hit Ctrl-Z and the session will be suspended -- handy if you want to check something on your local box without logging all the way out of SSH. This trick will also work from within screen, and even from within mutt. To return to your SSH session, type fg and hit return.
This isn't the only use for ~. For a full list of escape sequences, type ~?. This one doesn't work within mutt; however, only from a console, although screen is fine.
Another potentially useful escape sequence option is...
Read the rest of this OpenSSH tip at Serverwatch
- 1Linux Top 3: Fedora 24, Peppermint 7 and Solus 1.2
- 2Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0
- 3Linux 4.7 Set to Boost Live Patching, Security and Power Management
- 4Linux 4.6 Charred Weasel adds USB 3.1 Support
- 5Linux Top 3: OpenIndiana 2016.04, Ubuntu 16.04 and Debian's New Leader