new option ssh-add -v to verify if key is loaded into the agent
Andy Tsouladze
andyb1 at andy-t.org
Fri Apr 8 07:44:09 EST 2011
On Thu, 7 Apr 2011, Daniel Kahn Gillmor wrote:
> On 04/07/2011 03:12 AM, Konrad Bucheli wrote:
>> In a shell script I need to verify if a key belonging to a given public
>> key file is already loaded into the agent. To achieve this, I added a
>> new option -v to ssh-add which does this verification.
>
> Couldn't this already be implemented by grepping the output of
> ssh-add -L ? Is there a compelling need to introduce (and maintain) a
> new command-line argument for this?
ssh-add without any argument shows which keys are loaded, like this:
% ssh-add
Identity added: /home/andyt/.ssh/id_rsa (/home/andyt/.ssh/id_rsa)
For some reason, man page does not mention this.
Regards,
Andy
Dr Andy Tsouladze
Sr Unix/Storage SysAdmin
More information about the openssh-unix-dev
mailing list