💾 Archived View for g.codelearn.me › 2017-10-27-ssh-escape-seqaence.gmi captured on 2023-03-20 at 17:47:20. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

SSH escape sequences or how to quit frozen SSH connection

Hey,

So your SSH session has been frozen? Here is what I was doing when it happened.

The actual thing that should be done is press:

Welcome back to your local machine.

The actions performed are called **Escape Sequence**.

SSH is just a shell tunnel between you and another machine. The SSH client pass all keys sequence, including key bindings, to the server.

So if you want to press `CTRL+c` to kill the running app it will be killed on the remote machine instead of killing the current SSH client.

Special key sequences allows you to get reaction directly from SSH client instead of an app on remote server.

If you want to see all possible sequences just press:

Supported escape sequences:
 ~.   - terminate connection (and any multiplexed sessions)
 ~B   - send a BREAK to the remote system
 ~C   - open a command line
 ~R   - request rekey
 ~V/v - decrease/increase verbosity (LogLevel)
 ~^Z  - suspend ssh
 ~#   - list forwarded connections
 ~&   - background ssh (when waiting for connections to terminate)
 ~?   - this message
 ~~   - send the escape character by typing it twice

<3