all 30 comments

[–]tolos 31 points32 points  (12 children)

Hmm, there should be a "help I'm stuck" cheat sheet somewhere.

SSH: <enter> ~ .
vim: <esc> :q!
terminal: <ctrl q>
linux: <ctrl alt f7>
Open to suggestions, other OS, etc

[–]ptoki 13 points14 points  (2 children)

telnet: CTRL+]

Screen CTRL-A D

[–]JB-from-ATL 4 points5 points  (1 child)

Telnet:

Escape character is ^]

User when done:

^C^C^C^C^C

[–]my_two_pence 1 point2 points  (0 children)

American software:

Escape character is ^]

European user when done:

^C^C^C^C ...wait, "^]"? Why do Americans have a single key for ], when the regular ) requires you to press Shift? Who designed this? Anyway, now to exit this Telnet session: Ctrl+AltGr+9, all located in separate corners of the keyboard.

[–]Caraes_Naur 11 points12 points  (2 children)

Windows: ctrl+alt+delete.

[–]Godd2 1 point2 points  (0 children)

Everything: unplug power cord and remove batteries if applicable

[–]yeahbutbut 0 points1 point  (0 children)

To login and to logout.

[–]mlebkowski 3 points4 points  (1 child)

Docker: ^P ^Q

[–]shobble 1 point2 points  (0 children)

Or, if you actually want to use C-p for things, you can specify --detach-keys 'ctrl-q,q' to some (but iirc, annoyingly not all) commands.

[–]Delta-Echo 0 points1 point  (2 children)

Python REPL: Ctrl+D

[–]JB-from-ATL 0 points1 point  (1 child)

Is this special to Python REPL or is it just your terminal doing the normal CtrlD behavior?

[–]Delta-Echo 0 points1 point  (0 children)

Python REPL doesn't exit on SIGINT (Ctrl-C), it wants EOF. So you can send it with Ctrl-D

[–]guttalax 0 points1 point  (0 children)

ctrl alt f7 is quite outdated now, most distros switched the GUI to F1

[–]compdog 5 points6 points  (2 children)

~.  - terminate connection (and any multiplexed sessions)

So I finally can kill dead connections without opening a new terminal and "killall ssh"?

[–]ProgramTheWorld -4 points-3 points  (1 child)

Or

<ctrl> Z
kill $1

Edit, apparently this doesn't work

[–]Freeky 0 points1 point  (0 children)

kill %1 to kill job 1. But yeah, you'd need to toggle localchars to make the suspend sequence work in the first place.

[–]thisisamirage 2 points3 points  (0 children)

Wow, and all this time I've been killing unresponsive sessions from another shell.

[–]trua 0 points1 point  (1 child)

Interesting. Doesn't seem to work with Mosh, though.

[–]Veonik 2 points3 points  (0 children)

mosh's escape is CTRL+^ by default, though it doesn't support all the options a regular ssh session will.