logoalt Hacker News

SSH Secret Menu

104 pointsby piccirelloyesterday at 3:28 AM39 commentsview on HN

https://xcancel.com/rebane2001/status/2031037389347406054


Comments

0xbadcafebeetoday at 12:05 AM

Find the HIDDEN SECRETS that THEY DON'T WANT YOU TO KNOW!

    $ man ssh
show 5 replies
piccirellotoday at 12:29 AM

I've been using SSH for ~15 years and never knew about these escape sequences. I'm eagerly awaiting my next hung session so that I can test `~.`. It's much nicer than my current approach of having to close that terminal window.

show 6 replies
vzalivatoday at 2:08 AM

I've used ~. for a long time but did not know about others. I know, should have read man page.

Anyway, if you try it from shell prompt it is likely will not work as pressing ENTER shows the next prompt. Try `cat` followed by ENTER and then ~?

show 1 reply
pramtoday at 12:08 AM

Yep the menu is handy for ssh tunneling. Maybe not a lot of people doing that these days though with stuff like dev tunnels and Tailscale.

show 1 reply
wrstoday at 3:31 AM

Those aren’t “secret”, they’re obviously borrowed from rsh — oh that’s right, I’m old.

show 1 reply
blueflowyesterday at 11:57 PM

As secret as the ssh manual.

show 1 reply
_kst_today at 12:25 AM

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.

show 2 replies
Lasangtoday at 1:45 AM

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.

niruitoday at 3:13 AM

Secret Menu -> Escape Characters

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

joecool1029today at 2:06 AM

FYI, you can kill forwarding tunnels with -KD portnum in that commandline too.

juancntoday at 1:36 AM

It's like Ctrl + ] on telnet.

The good old times!