version 1.30, 2002/02/04 20:41:16 |
version 1.30.2.2, 2003/04/03 22:35:17 |
|
|
.Nd adds RSA or DSA identities to the authentication agent |
.Nd adds RSA or DSA identities to the authentication agent |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm ssh-add |
.Nm ssh-add |
.Op Fl lLdD |
.Op Fl lLdDxXc |
|
.Op Fl t Ar life |
.Op Ar |
.Op Ar |
.Nm ssh-add |
.Nm ssh-add |
.Fl s Ar reader |
.Fl s Ar reader |
|
|
.Xr ssh-agent 1 . |
.Xr ssh-agent 1 . |
When run without arguments, it adds the files |
When run without arguments, it adds the files |
.Pa $HOME/.ssh/id_rsa , |
.Pa $HOME/.ssh/id_rsa , |
.Pa $HOME/.ssh/id_dsa |
.Pa $HOME/.ssh/id_dsa |
and |
and |
.Pa $HOME/.ssh/identity . |
.Pa $HOME/.ssh/identity . |
Alternative file names can be given on the command line. |
Alternative file names can be given on the command line. |
|
|
Instead of adding the identity, removes the identity from the agent. |
Instead of adding the identity, removes the identity from the agent. |
.It Fl D |
.It Fl D |
Deletes all identities from the agent. |
Deletes all identities from the agent. |
|
.It Fl x |
|
Lock the agent with a password. |
|
.It Fl X |
|
Unlock the agent. |
|
.It Fl t Ar 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 |
|
.Xr sshd_config 5 . |
|
.It Fl c |
|
Indicates that added identities should be subject to confirmation before |
|
being used for authentication. |
|
Confirmation is performed by the |
|
.Ev SSH_ASKPASS |
|
program mentioned below. |
|
Successful confirmation is signaled by a zero exit status from the |
|
.Ev SSH_ASKPASS |
|
program, rather than text entered into the requester. |
.It Fl s Ar reader |
.It Fl s Ar reader |
Add key in smartcard |
Add key in smartcard |
.Ar reader . |
.Ar reader . |
|
|
may be necessary to redirect the input from |
may be necessary to redirect the input from |
.Pa /dev/null |
.Pa /dev/null |
to make this work.) |
to make this work.) |
|
.It Ev SSH_AUTH_SOCK |
|
Identifies the path of a unix-domain socket used to communicate with the |
|
agent. |
.El |
.El |
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
Exit status is 0 on success, 1 if the specified command fails, |
Exit status is 0 on success, 1 if the specified command fails, |