Agent key restrictions and wildcards
Brian Candler
b.candler at pobox.com
Fri Dec 4 04:10:00 AEDT 2026
I've been trying out the agent key restrictions, added in 8.9:
https://www.openssh.org/agent-restrict.html
I can't work out whether it's possible to add a key to an agent with the
policy: "allow this key to authenticate to any host, but not to be
forwarded".
It says wildcards are supported, but I tried it with 10.6p2:
% ssh-add -h "*"
No host keys found for destination "*"
I think this capability would be useful as-is, but the end game I was
thinking of was:
- one key which can be used to authenticate to any host, but not
forwarded, or only forwarded according to specified policy
- a different key which can be forwarded, but only used for sudo
authentication: perhaps using a pseudo host, like -h "*>sudo"
Regards,
Brian.
More information about the openssh-unix-dev
mailing list