summaryrefslogtreecommitdiff
path: root/ssh-add.0
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2003-09-01 18:52:37 +0000
committerColin Watson <cjwatson@debian.org>2003-09-01 18:52:37 +0000
commit854156dd39acbde9b4a47ec0fc54a042ea7358e0 (patch)
tree96755f8590acc2146f4b4ef5b5cdba600e5d9353 /ssh-add.0
parentfad82e8999e790899083f9e22a1841148d746df6 (diff)
parent053db7da5ce09acdf742789d9d1a05e81d4861d0 (diff)
Import OpenSSH 3.6.1p2.
Diffstat (limited to 'ssh-add.0')
-rw-r--r--ssh-add.0102
1 files changed, 102 insertions, 0 deletions
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..b0096423d
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,102 @@
1SSH-ADD(1) BSD General Commands Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds RSA or DSA identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-lLdDxXc] [-t life] [file ...]
8 ssh-add -s reader
9 ssh-add -e reader
10
11DESCRIPTION
12 ssh-add adds RSA or DSA identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 $HOME/.ssh/id_rsa, $HOME/.ssh/id_dsa and $HOME/.ssh/identity. Alterna-
15 tive file names can be given on the command line. If any file requires a
16 passphrase, ssh-add asks for the passphrase from the user. The
17 passphrase is read from the userM-bM-^@M-^Ys tty. ssh-add retries the last
18 passphrase if multiple identity files are given.
19
20 The authentication agent must be running and must be an ancestor of the
21 current process for ssh-add to work.
22
23 The options are as follows:
24
25 -l Lists fingerprints of all identities currently represented by the
26 agent.
27
28 -L Lists public key parameters of all identities currently repre-
29 sented by the agent.
30
31 -d Instead of adding the identity, removes the identity from the
32 agent.
33
34 -D Deletes all identities from the agent.
35
36 -x Lock the agent with a password.
37
38 -X Unlock the agent.
39
40 -t life
41 Set a maximum lifetime when adding identities to an agent. The
42 lifetime may be specified in seconds or in a time format speci-
43 fied in sshd_config(5).
44
45 -c Indicates that added identities should be subject to confirmation
46 before being used for authentication. Confirmation is performed
47 by the SSH_ASKPASS program mentioned below. Successful confirma-
48 tion is signaled by a zero exit status from the SSH_ASKPASS pro-
49 gram, rather than text entered into the requester.
50
51 -s reader
52 Add key in smartcard reader.
53
54 -e reader
55 Remove key in smartcard reader.
56
57FILES
58 $HOME/.ssh/identity
59 Contains the protocol version 1 RSA authentication identity of
60 the user.
61
62 $HOME/.ssh/id_dsa
63 Contains the protocol version 2 DSA authentication identity of
64 the user.
65
66 $HOME/.ssh/id_rsa
67 Contains the protocol version 2 RSA authentication identity of
68 the user.
69
70 Identity files should not be readable by anyone but the user. Note that
71 ssh-add ignores identity files if they are accessible by others.
72
73ENVIRONMENT
74 DISPLAY and SSH_ASKPASS
75 If ssh-add needs a passphrase, it will read the passphrase from
76 the current terminal if it was run from a terminal. If ssh-add
77 does not have a terminal associated with it but DISPLAY and
78 SSH_ASKPASS are set, it will execute the program specified by
79 SSH_ASKPASS and open an X11 window to read the passphrase. This
80 is particularly useful when calling ssh-add from a .Xsession or
81 related script. (Note that on some machines it may be necessary
82 to redirect the input from /dev/null to make this work.)
83
84 SSH_AUTH_SOCK
85 Identifies the path of a unix-domain socket used to communicate
86 with the agent.
87
88DIAGNOSTICS
89 Exit status is 0 on success, 1 if the specified command fails, and 2 if
90 ssh-add is unable to contact the authentication agent.
91
92AUTHORS
93 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
94 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
95 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
96 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
97 versions 1.5 and 2.0.
98
99SEE ALSO
100 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
101
102BSD September 25, 1999 BSD