Top
Best
New

Posted by piccirello 1 day ago

SSH Secret Menu(twitter.com)
https://xcancel.com/rebane2001/status/2031037389347406054
230 points | 92 commentspage 2
olalonde 8 hours ago|
Wow, never knew this... That said I'm not sure if I'll remember using it as my muscle memory is already trained to kill hung processes via ctrl-b s, ctrl-k, ctrl-b x (in tmux).
Lasang 11 hours ago||
Hidden or undocumented features like this always have a strange appeal. Part of it is nostalgia for older software where small Easter eggs or experimental features would sometimes ship in production builds.
alwillis 9 hours ago|
It's not hidden or undocumented; it's in the man page.

Here's 15-year old HN link about it: http://grack.com/blog/2011/02/23/ssh-escape-sequences-or-don...

nirui 10 hours ago||
Secret Menu -> Escape Characters

I really hate it when people just rename terms. It made it harder to search properly for better answers.

joecool1029 11 hours ago||
FYI, you can kill forwarding tunnels with -KD portnum in that commandline too.
dennis-tra 6 hours ago||
https://xkcd.com/1053/
_kst_ 12 hours ago||
That doesn't do much good if you set `EscapeChar` to `none` in `.ssh/config`.

I find it convenient not to have to worry about accidentally entering escape characters. YMMV.

MayeulC 12 hours ago||
Note that it only works after pressing enter, so the odds are slim. In practice, I don't think I ever hit it by accident.
greyface- 11 hours ago||
I have noticed it while running ~/bin/some_command. The ~ doesn't echo until I also type the /. It doesn't cause any misbehavior because there is no binding for ~/ but can be slightly surprising.
singlow 10 hours ago||
I find it odd that you would have commands in ~/bin but not have it be the highest priority in your PATH. I use ~/.local/bin, but would never type it because i wouldn't have bins that overlap shell commands and no other path would have priority.
greyface- 8 hours ago||
Usually, it is. IIRC, this was when I was just setting up my environment on a new host, after I had populated ~/bin but before I restarted my shell to pick up PATH modifications.
wolvoleo 12 hours ago||
SSH does it pretty well though. Never once have I done it by mistake.
jasomill 10 hours ago||
I'd guess this is because it only works in ssh PTY sessions. So it would have no effect on tunneling or when piping arbitrary data through ssh to a non-interactive remote command (unless you use the -t switch to force PTY allocation even when stdin is not a TTY).
wolvoleo 10 hours ago||
No I don't think so. I mainly and pretty much constantly use SSH for logging in. I'm not one of those 'cattle not pets' guys lol.

And when I port forward I usually don't even tunnel it over SSH because all my stuff is on tailscale so it's also encrypted.

fay_ 5 hours ago|
[dead]