1. Tech

Your suggestion is on its way!

An email with a link to:

http://linux.about.com/library/cmd/blcmdl1_ssh-add.htm

was emailed to:

Thanks for sharing About.com with others!

Linux / Unix Command: ssh-add
Command Library

NAME

ssh-add - adds RSA or DSA identities to the authentication agent  

SYNOPSIS

ssh-add [-lLdDxX ] [-t life ] [file ... ]
ssh-add -s reader
ssh-add -e reader  

DESCRIPTION

ssh-add adds RSA or DSA identities to the authentication agent, ssh-agent1. When run without arguments, it adds the files $HOME/.ssh/id_rsa $HOME/.ssh/id_dsa and $HOME/.ssh/identity Alternative file names can be given on the command line. If any file requires a passphrase, ssh-add asks for the passphrase from the user. The passphrase is read from the user's tty. ssh-add retries the last passphrase if multiple identity files are given.

The authentication agent must be running and must be an ancestor of the current process for ssh-add to work.

The options are as follows:

-l
Lists fingerprints of all identities currently represented by the agent.
-L
Lists public key parameters of all identities currently represented by the agent.
-d
Instead of adding the identity, removes the identity from the agent.
-D
Deletes all identities from the agent.
-x
Lock the agent with a password.
-X
Unlock the agent.
-t life
Set a maximum lifetime when adding identities to an agent. The lifetime may be specified in seconds or in a time format specified in sshd(8).
-s reader
Add key in smartcard reader
-e reader
Remove key in smartcard reader

 

SEE ALSO

ssh(1), ssh-agent1, ssh-keygen1, sshd(8)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

©2014 About.com. All rights reserved.