News for hackers. Stuff that matters.
Re:SSH Secret Menu by 0xbadcafebee on Tuesday March 10, 2026 @08:05PM (#47330350)
Find the HIDDEN SECRETS that THEY DON'T WANT YOU TO KNOW!

    $ man ssh
Re:SSH Secret Menu by smoyer on Tuesday March 10, 2026 @08:54PM (#47330652)
HN as a tabloid ... After all enquiring minds want to know!
Re:SSH Secret Menu by senectus1 on Tuesday March 10, 2026 @09:03PM (#47330710)
hahaha made me laugh, thanks :-D
Re:SSH Secret Menu by imwally on Tuesday March 10, 2026 @10:03PM (#47331028)
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!”
Re:SSH Secret Menu by bombcar on Tuesday March 10, 2026 @10:29PM (#47331175)
Reminds me of the old canard of 'man woman'
Re:SSH Secret Menu by AndrewDavis on Wednesday March 11, 2026 @02:09AM (#47332196)
Further blow their minds by showing them `apropos` https://manpages.debian.org/testing/man-db/apropos.1.en.html
Re:SSH Secret Menu by riffraff on Wednesday March 11, 2026 @03:31AM (#47332618)
I remember my first days with Linux/Unix and being taught about man and apropos and info. But somehow I could never find anything useful via apropos!

With many years of insight, I think I probably never updated the database.

Re:SSH Secret Menu by SEJeff on Wednesday March 11, 2026 @07:30AM (#47334246)
man -k, apropos, but less to type
Re:SSH Secret Menu by coldpie on Wednesday March 11, 2026 @11:14AM (#47336711)
I'm 100% certain this is user error, but I have not once gotten apropos to give me any output other than "nothing appropriate."
Re:SSH Secret Menu by aa-jv on Wednesday March 11, 2026 @05:21AM (#47333377)
$ man -k <whatever>
Re:SSH Secret Menu by Aardwolf on Wednesday March 11, 2026 @06:01AM (#47333646)
man, cat, lynx... We're all just creatures in a vast universe
Re:SSH Secret Menu by saguntum on Tuesday March 10, 2026 @10:36PM (#47331203)
man ssh_config is even more interesting and hidden

ProxyCommand is fun

Re:SSH Secret Menu by project2501a on Wednesday March 11, 2026 @04:24AM (#47332960)
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?
Re:SSH Secret Menu by pmontra on Wednesday March 11, 2026 @04:38AM (#47333060)
ProxyJump is a newer functionality. There used to be only ProxyCommand. ProxyJump is a shortcut for the usual way to use ProxyCommand to connect through a bastion host but ProxyCommand is more flexible. For example with ProxyCommand you can run any command to connect to the remote host. ProxyJump only connects over ssh. I think I replaced all my ProxyCommand with ProxyJump because I don't need much else than the normal use case.
Re:SSH Secret Menu by m132 on Wednesday March 11, 2026 @05:10AM (#47333297)
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 by project2501a on Thursday March 12, 2026 @12:45PM (#47353627)
Much appreciated!
Re:SSH Secret Menu by pritambaral on Wednesday March 11, 2026 @04:38AM (#47333066)
ProxyCommand allows you to use any command to setup a connection. Not necessarily an ssh command, like ProxyJump. It can be any command, as long as it receives on stdin and produces on stdout, it can act like a TCP connection.

ProxyJump is a special case of `ProxyCommand ssh -p <port> <user>@<host>`. Can't replace the `ssh` in there when using ProxyJump.

Re:SSH Secret Menu by brigandish on Wednesday March 11, 2026 @04:55AM (#47333188)
I use ProxyCommand to run spipe tunnels for SSH.
Re:SSH Secret Menu by marcta on Wednesday March 11, 2026 @08:37AM (#47334777)
I came across ProxyCommand earlier this week, funnily enough. I have Cloudflare Zero Trust set up with an SSH service[0], and have the server firewall drop all incoming traffic. That helps reduce my attack surface, since I don't have any incoming ports open.

[0]: https://developers.cloudflare.com/cloudflare-one/networks/co...

Re:SSH Secret Menu by JayGuerette on Wednesday March 11, 2026 @08:44AM (#47334851)
I use ProxyCommand in edge-case devices where key auth is not an option and the password is not controlled by me. ProxyCommand points to a script the retrieves the password from the vault, puts it on the clipboard for pasting, reminds me via stderr it's done so, and then proxies the connection.
Re:SSH Secret Menu by project2501a on Thursday March 12, 2026 @12:47PM (#47353658)
Interesting. I might have such a use case. Do you have anything about best practices on how to automate grabbing passwords from vaults? Cuz it seems to me that the vault needs to be kept open or keep the vault password somewhere on disk.
Re:SSH Secret Menu by withinboredom on Wednesday March 11, 2026 @09:12AM (#47335132)
You can also run commands when a user authenticates, grab their keys from github.com/username.keys, validate they're a user in a specific github group, then let them connect by outputing the keys, otherwise nothing to deny them access.

It's really great for ops teams where you want to give ssh access and manage it from github teams without needing a complex system.

Re:SSH Secret Menu by paulddraper on Wednesday March 11, 2026 @01:42AM (#47332052)
It’s been a while since I’ve heard RTFM
Re:SSH Secret Menu by iso1631 on Wednesday March 11, 2026 @08:12AM (#47334576)
RTFM gave way to LMGTFY, and I next is something like ATLLM (ask the LLM)
Re:SSH Secret Menu by johnisgood on Wednesday March 11, 2026 @01:50PM (#47338825)
Because it is associated with "toxicity". Yeah, I know.
Re:SSH Secret Menu by longislandguido on Wednesday March 11, 2026 @01:58AM (#47332142)
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.

Re:SSH Secret Menu by darkwater on Wednesday March 11, 2026 @04:29AM (#47332999)
Do we still have those? I think it was common in late '90s, due to GNU trying to get `info` gain moment but nowadays?
Re:SSH Secret Menu by skywhopper on Wednesday March 11, 2026 @05:18AM (#47333349)
Mostly just the bash builtins have (had) this problem.
Re:SSH Secret Menu by aa-jv on Wednesday March 11, 2026 @05:21AM (#47333370)
But its also true that many, many man pages have extremely valuable information that no enterprising hacker should overlook, too ..
Re:SSH Secret Menu by halapro on Wednesday March 11, 2026 @06:15AM (#47333743)
I was never able to properly parse large man pages, I'm so happy that llms can now prepare half a usable command without spending an hour reading a time without a single usage example.
Re:SSH Secret Menu by jeremyscanvic on Wednesday March 11, 2026 @06:49AM (#47333946)
What I usually do when I have to read large man pages like bash(1) is I read them as PDFs:

man -Tpdf bash | zathura -

Replace zathura with any PDF viewer reading from stdin or just save the PDF. Hope that can be useful to someone!

Re:SSH Secret Menu by sourcegrift on Wednesday March 11, 2026 @08:03AM (#47334506)
my manpager is `vim -`, can't beat that
Re:SSH Secret Menu by homebrewer on Wednesday March 11, 2026 @08:39AM (#47334802)
You probably can — by using neovim:

https://wiki.archlinux.org/title/Neovim#Use_as_a_pager

https://neovim.io/doc/user/filetype/#_man

I've also been running (neo)vim as a manpager. You get the same features as with vim (like easily copying text or opening referenced files/other manpages without using the mouse), but neovim also parses the page and creates a table of contents, which can be used for navigation within the page. It doesn't always work perfectly, but is usually better than nothing.

Re:SSH Secret Menu by throw-the-towel on Wednesday March 11, 2026 @09:44AM (#47335496)
`tldr` is also great. It's essentially a collection of example invocations of *nix commands.
Re:SSH Secret Menu by pelotron on Wednesday March 11, 2026 @10:00AM (#47335673)
TIL that what I have wanted in manpages for years exists. Thank you!
Re:SSH Secret Menu by rebane2001 on Wednesday March 11, 2026 @11:28AM (#47336895)
tldr is so good, i wish it was a part of the os the same way manpages are just to help out newcomers
Re:SSH Secret Menu by Almondsetat on Wednesday March 11, 2026 @07:15AM (#47334133)
The real jackpot is if they're the same as the --help command
Re:SSH Secret Menu by jbaber on Wednesday March 11, 2026 @08:36AM (#47334766)
I used to think this and used things like `help2man`. I now disagree, but throwing it out there.
Re:SSH Secret Menu by nticompass on Wednesday March 11, 2026 @09:10AM (#47335108)
I could use some "help2man." I don't know how to "man" /s
Re:SSH Secret Menu by gcr on Wednesday March 11, 2026 @07:41AM (#47334331)
Most people just discount man pages as unreadable and don’t even try to understand them.

Case in point: the jq man page is incredible and everyone I know instead runs off to google or stackoverflow or Claude to answer simple questions

Re:SSH Secret Menu by thaumasiotes on Wednesday March 11, 2026 @04:04AM (#47332828)
How's that supposed to help? The ssh man page is about as close as you can get to a Platonic example of "uninformative pretend-documentation".
Re:SSH Secret Menu by hrmtst93837 on Wednesday March 11, 2026 @05:07AM (#47333273)
If the ssh man page were any lazier it would just be a list of arguments with no context at all, so I get the frustation. The tricky bit is that much of the "secret menu" knowledge about ssh only lives in blog posts and random issue comments, which makes the doc gap feel intentional at times. If you want real examples or usage patterns you pretty much have to scrape Stack Overflow or crawl through dotfiles in public repos hoping someone else already fought the same fight.
Re:SSH Secret Menu by antonvs on Wednesday March 11, 2026 @04:42AM (#47333098)
Who doesn’t want you to know? Well, obviously, the man. That’s why you type man ssh, you’re forcing the man to tell you what he knows.
Re:SSH Secret Menu by vlod on Wednesday March 11, 2026 @07:23AM (#47334196)
I still struggle with the fact that I was (or delusional) an effective C programmer "back in the day" (before google etc) and all we had was "man" to look up std/x11 system calls.

Now I am dismayed with juniors who can't even be bothered to use google (or llms) to look up stuff on their first hiccup.

#include <old-man-shouting-at-clouds>

Re:SSH Secret Menu by SEJeff on Wednesday March 11, 2026 @07:31AM (#47334254)
That’s not a builtin, so wouldn’t it be:

   #include <old-man-shouting-at-clouds.h>
Re:SSH Secret Menu by obezyian on Wednesday March 11, 2026 @07:44AM (#47334363)
And it's kinda old, so maybe

  #define _POSIX_C_SOURCE 1
  #include <old-man-shouting-at-clouds.h>
Re:SSH Secret Menu by SEJeff on Wednesday March 11, 2026 @09:39AM (#47335444)
Well played good sir, well played
Re:SSH Secret Menu by lxgr on Wednesday March 11, 2026 @08:47AM (#47334874)
`pgrep`/`pkill` HATE this trick! Learn how this renegade developer (relatively) easily exits their hanging SSH sessions without restarting their laptop.
Re:SSH Secret Menu by proactivesvcs on Wednesday March 11, 2026 @09:38AM (#47335436)
Not as much as they hate Enter ~ .

See "escape characters" under man ssh.

Re:SSH Secret Menu by lxgr on Wednesday March 11, 2026 @10:04AM (#47335717)
Shh, you're giving away the trick for free! Please think of my clickthrough rates and ad revenue.
Re:SSH Secret Menu by _joel on Wednesday March 11, 2026 @09:21AM (#47335226)
They're sticking it to the man
Re:SSH Secret Menu by smnplk on Wednesday March 11, 2026 @11:39AM (#47337031)
sssshhhh...don't just give out secrets like that .
Re:SSH Secret Menu by EGreg on Wednesday March 11, 2026 @11:51AM (#47337208)
Working for the man eh?