Re: Feature request for ssh-add

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

 



On Thu, Aug 11, 2016 at 1:29 AM, Loganaden Velvindron
<loganaden@xxxxxxxxx> wrote:
[...]
> Instead of specifying each key file, a single file such as .config
> would contain:
> AgentDefaultKey ~/.ssh/client1_rsa.private ~/.ssh/client2_ed25519
> ~/.ssh/client3_ed25519.

You can do that with a trivial shell wrapper:

function ssh-add() { if [ -z "$@" ];then /usr/bin/ssh-add `cat
~/.ssh/keylist`; else /usr/bin/ssh-add $@; fi ; }

then list your keys in ~/.ssh/keylist.  ssh-add does not currently
read a config file and I don't think it should.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
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