Live data from Hacker News

SSH Secret Menu

twitter.com

71–80 of 184 posts

Re: SSH Secret Menu

#71

Earlier quoted context omitted.

man ssh_config is even more interesting and hidden ProxyCommand is fun

Honest question, why is ProxyCommand `fun`? What do I get out of ProxyCommand that i do not get out of setting the correct order for ProxyJump and doing an ssh finalhost -- domy --bidding?

I use ProxyCommand to run spipe tunnels for SSH.

Re: SSH Secret Menu

#72
post #38

Earlier quoted context omitted.

It'll still work. OpenSSH doesn't care about output (for ~ stuff), only input, so if you type ~. it will close the connection.

It does not. open ssh linux to mac, typing ~ just types it on fish shell prompt. It works after`cat` followed by ENTER

In newer versions, it's disabled by default and you have to do something like this to enable in ~/.ssh/config:

    Host *
    EnableEscapeCommandline yes

Re: SSH Secret Menu

#74

Earlier quoted context omitted.

man ssh_config is even more interesting and hidden ProxyCommand is fun

Honest question, why is ProxyCommand `fun`? What do I get out of ProxyCommand that i do not get out of setting the correct order for ProxyJump and doing an ssh finalhost -- domy --bidding?

You can get a lot more out of ProxyCommand. For example, you can run SSH over non-IP protocols, such as serial, Bluetooth RFCOMM for embedded boards, or vsock for virtual machines without networking set up at all. The latter is built into and setup up automatically by systemd:

https://www.freedesktop.org/software/systemd/man/257/systemd...

Re: SSH Secret Menu

#75

Earlier quoted context omitted.

Many Linux man pages have the thoroughness of a fortune cookie, so I can understand the skepticism. Jackpot if they're just a pointer to an 'info' page.

Do we still have those? I think it was common in late '90s, due to GNU trying to get `info` gain moment but nowadays?

Mostly just the bash builtins have (had) this problem.

Re: SSH Secret Menu

#76

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

Many Linux man pages have the thoroughness of a fortune cookie, so I can understand the skepticism. Jackpot if they're just a pointer to an 'info' page.

But its also true that many, many man pages have extremely valuable information that no enterprising hacker should overlook, too ..

Re: SSH Secret Menu

#78

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.

I last used this menu about 20 years ago when a dialup modem was the only way to roll, and have pretty much forgotten about it since the days of always-on direct to the desktop TCP/IP ..

Re: SSH Secret Menu

#80
post #23

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

I blew a few minds a week ago when I told my younger coworkers about man pages. I hit ‘em with the `man man` and one dude was like “whoa!”

man, cat, lynx... We're all just creatures in a vast universe
Post reply on HN