Displaying 1 result from an estimated 1 matches for "onlyforwardauthedkey".
2016 Mar 11
2
Forward only specific identities
...% ls ~/.ssh | grep .pub
id_ecdsa.pub
id_ed25519.pub
id_rsa.pub
% cat .ssh/config
Host example.com:
IdentitiesOnly=yes
IdentityFile=/home/tspriggs/.ssh/id_rsa.pub
Host another-example.com:
IdentitiesOnly=yes
IdentityFile=/home/tspriggs/.ssh/id_ecdsa.pub
# This would be super cool:
Host *
OnlyForwardAuthedKey=yes
% ssh tspriggs at example.com
example.com % ssh-agent -L
ssh-rsa ...
example.com % ssh tspriggs at another-example.com
Permission denied (publickey)
example.com % logout
Connection to example.com closed.
% ssh tspriggs at another-example.com
another-example.com % ...
Cheers,
-Tim