2 ms·
Quitting SSH connections that hang: ~. If you frequently connect through VPNs to other hosts, often enough the SSH connection times out and just siits there, t
by buster 15y ago
Quitting SSH connections that hang: ~.
If you frequently connect through VPNs to other hosts, often enough the SSH connection times out and just siits there, taking no commands. Hitting ~ and . will kill the session (it's an openssh feature).
Other frequently used tools: awk, sort, uniq, tail, find, grep.. they alone make the shell a really powerful tool
- shabble 15y agoit's important to note that this needs to be preceeded by a newline to work. so: <ret>~? (list possible escapes) <ret>~. (disconnect session) If you're dumping binary data through ssh as a pipe, this can sometimes bite you if these sequences appear in your data. ssh -oEscapeChar=none ... handles that situation. (for the gory details, man ssh_config)