4 ms·
I agree, if you press Ctrl-C vim (with default settings) literally tells you how to quit. `\n~` in SSH is completely unrecoverable.
by kevincox 6y ago
I agree, if you press Ctrl-C vim (with default settings) literally tells you how to quit. `\n~` in SSH is completely unrecoverable.
- Aeolun 6y agoIf you are already using SSH in a situation where ‘exit’ doesn’t work, it becomes more reasonable to assume the user will know.
- dllthomas 6y agoI don't understand what you're saying here; could you expand a bit?
- matt_kantor 6y agoI'm not who you replied to, but I hardly ever need to use tilde escape sequences to quit ssh. I just terminate the session from inside itself with the `exit` command.
- AlphaSite 6y agoThe most common case I’ve hit issues is the remote server is down or blocked but the connection hasn’t yet terminated so exit is no longer possible.
- matt_kantor 6y agoYeah, that's the only time I've had to use the escape sequences. However that happens to me only once a year or so (but maybe I don't use ssh as often/in the same ways as others).
- Aeolun 6y agoI guess my timeout is really low, so it’ll fail fairly rapidly.
- dllthomas 6y agoI've occasionally had things crash in ways that have swallowed ctrl-c. More recently I've learned to still try ctrl-z in those cases, as that often still works (but not always). None of this is very common, but I found myself opening another terminal and killing the ssh process probably tens of times before I learned about the ~ escapes.