News for hackers. Stuff that matters.
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.