Just use ssh-add -c to have the ssh-agent confirm every use of a key.
My assessment still stands. Use proxyjump (-J) instead of proxy command whenever possible.
Also very good for other options that are useful but problematic when used with untrustworthy target hosts, like ForwardX11, GSSAPIAuthentication, weaker *Algorithms (e.g. for those old Cisco boxes with no updates and similar crap).
Another neat trick is just using a ""Match *.my-trustworthy-company-domain.com" block" with an "IdentityFile ~/.ssh/secret-company-internal-key" directive. That key will then be used for those company-internal things, but not for any others, if you don't add it to the agent.
As far as I’m concerned the baby and the bath water is just a normal expression.
I thought it was something about the use of “confirm,” haha.
So I can see where someone might count it toward buzzword bingo. But this post also offered an alternate solution when saying "baby+bathwater", so the bingo caller should refuse to score this one.
Learned that rule the hard way. It’s crucial to the success of HN and I am grateful dang corrected me.
Glad that at least a few people above got the joke
So forwarding your SSH agent means an administrator of the system you're connected to could use any of those host keys loaded in the agent to connect to their associated machine.
...your own (headless) server that's in the same room as you, when you're using your laptop as a thin-client for it?
You're allowed to draw sensible boundaries.
Which honestly should always be disabled. There are no trusted hosts.