Re: ability to select which identity to forward when using "ForwardAgent" ?

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On 10/4/20 1:20 PM, Pablo Escobar wrote:
[snip]> I usually have around 10 identities loaded in my local ssh-agent
and when I
> use the "ForwardAgent" option all them are forwarded to the remote server,
> which is not ideal. I usually only need to forward one (or two) of the
> identities and I would like to be able to choose which one(s) to forward.
[snip]

One work-around [1] is to use an alias.

  alias assh="ssh-agent ssh -o AddKeysToAgent=confirm \
	-o ForwardAgent=yes"

That approach will still respect what's in ssh_config(5) except for the
two options it overrides.

/Lars

[1] https://vincent.bernat.ch/en/blog/2020-safer-ssh-agent-forwarding
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux