Monday, January 1, 2018

OpenSSH Shortcut Escaping a Session Without Disconnecting

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 isnt the only use for ~. For a full list of escape sequences, type ~?. This one doesnt work within mutt; however, only from a console, although screen is fine.


visit link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.