1 | .\" -*- nroff -*- |
---|
2 | .\" |
---|
3 | .\" ssh-add.1 |
---|
4 | .\" |
---|
5 | .\" Author: Tatu Ylonen <ylo@cs.hut.fi> |
---|
6 | .\" |
---|
7 | .\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
---|
8 | .\" All rights reserved |
---|
9 | .\" |
---|
10 | .\" Created: Sat Apr 22 23:55:14 1995 ylo |
---|
11 | .\" |
---|
12 | .\" $Id: ssh-add.1,v 1.1.1.2 1999-03-08 17:42:59 danw Exp $ |
---|
13 | .\" $Log: not supported by cvs2svn $ |
---|
14 | .\" Revision 1.5 1998/07/08 00:40:34 kivinen |
---|
15 | .\" Changed to do similar commercial #ifdef processing than other |
---|
16 | .\" files. |
---|
17 | .\" |
---|
18 | .\" Revision 1.4 1997/04/27 21:48:43 kivinen |
---|
19 | .\" Added F-SECURE stuff. |
---|
20 | .\" |
---|
21 | .\" Revision 1.3 1997/04/23 00:03:50 kivinen |
---|
22 | .\" Documented -p flag. |
---|
23 | .\" |
---|
24 | .\" Revision 1.2 1997/03/25 05:41:32 kivinen |
---|
25 | .\" Changed ylo's email to @ssh.fi. |
---|
26 | .\" |
---|
27 | .\" Revision 1.1.1.1 1996/02/18 21:38:13 ylo |
---|
28 | .\" Imported ssh-1.2.13. |
---|
29 | .\" |
---|
30 | .\" Revision 1.5 1995/08/31 09:22:20 ylo |
---|
31 | .\" Proofreading fixes. |
---|
32 | .\" |
---|
33 | .\" Revision 1.4 1995/08/29 22:30:37 ylo |
---|
34 | .\" Improved manual pages from Andrew Macpherson. |
---|
35 | .\" |
---|
36 | .\" Revision 1.3 1995/08/21 23:27:06 ylo |
---|
37 | .\" Minor additions. |
---|
38 | .\" |
---|
39 | .\" Revision 1.2 1995/07/13 01:36:56 ylo |
---|
40 | .\" Removed "Last modified" header. |
---|
41 | .\" Added cvs log. |
---|
42 | .\" |
---|
43 | .\" $Endlog$ |
---|
44 | .\" |
---|
45 | .\" |
---|
46 | .\" |
---|
47 | .\" |
---|
48 | .\" #ifndef F_SECURE_COMMERCIAL |
---|
49 | .TH SSH-ADD 1 "November 8, 1995" "SSH" "SSH" |
---|
50 | .\" #endif F_SECURE_COMMERCIAL |
---|
51 | |
---|
52 | .SH NAME |
---|
53 | ssh-add \- adds identities for the authentication agent |
---|
54 | |
---|
55 | .SH SYNOPSIS |
---|
56 | .B ssh-add |
---|
57 | [\c |
---|
58 | .B \-p\c |
---|
59 | ] |
---|
60 | [\c |
---|
61 | .B \-l\c |
---|
62 | ] |
---|
63 | [\c |
---|
64 | .B \-d\c |
---|
65 | ] |
---|
66 | [\c |
---|
67 | .B \-D\c |
---|
68 | ] |
---|
69 | [\c |
---|
70 | .B file\c |
---|
71 | \&.\|.\|.\|] |
---|
72 | |
---|
73 | .SH DESCRIPTION |
---|
74 | .LP |
---|
75 | .B Ssh-add |
---|
76 | adds identities to the authentication agent, |
---|
77 | .B ssh-agent. |
---|
78 | When run without arguments, it adds the file |
---|
79 | .IR $HOME/\s+2.\s0ssh/identity ". |
---|
80 | Alternative file names can be given on the |
---|
81 | command line. If any file requires a passphrase, |
---|
82 | .B ssh-add |
---|
83 | asks for the passphrase from the user. If the -p option is given then |
---|
84 | the passphrase is read from stdin, otherwise if the user is using X11, |
---|
85 | the passphrase is requested using a small X11 program; otherwise it is |
---|
86 | read from the user's tty. (Note: it may be necessary to redirect stdin |
---|
87 | from /dev/null to get the passphrase requested using X11.) |
---|
88 | .LP |
---|
89 | The authentication agent must be running and must be an ancestor of |
---|
90 | the current process for |
---|
91 | .B ssh-add |
---|
92 | to work. |
---|
93 | |
---|
94 | .SH OPTIONS |
---|
95 | .TP 0.5i |
---|
96 | .B \-p |
---|
97 | Read passphrase from stdin (or pipe). |
---|
98 | .TP |
---|
99 | .B \-l |
---|
100 | Lists all identities currently represented by the agent. |
---|
101 | .TP |
---|
102 | .B \-d |
---|
103 | Instead of adding the identity, removes the identity from the agent. |
---|
104 | .TP |
---|
105 | .B \-D |
---|
106 | Deletes all identities from the agent. |
---|
107 | |
---|
108 | .SH RETURN STATUS |
---|
109 | |
---|
110 | .B Ssh-add |
---|
111 | returns one of the following exit statuses. These may be useful in scripts. |
---|
112 | .IP 0 |
---|
113 | The requested operation was performed successfully. |
---|
114 | .IP 1 |
---|
115 | No connection could be made to the authentication agent. Presumably |
---|
116 | there is no authentication agent active in the execution environment |
---|
117 | of |
---|
118 | .B ssh-add. |
---|
119 | .IP 2 |
---|
120 | The user did not supply a required passphrase. |
---|
121 | .IP 3 |
---|
122 | An identify file could not be found, was not readable, or was in |
---|
123 | bad format. |
---|
124 | .IP 4 |
---|
125 | The agent does not have the requested identity. |
---|
126 | .IP 5 |
---|
127 | An unspecified error has occurred; this is a catch-all for errors not |
---|
128 | listed above. |
---|
129 | .RT |
---|
130 | |
---|
131 | .SH FILES |
---|
132 | .TP |
---|
133 | .I \&$HOME/\s+2.\s0ssh/identity |
---|
134 | Contains the RSA authentication identity of the user. This file |
---|
135 | should not be readable by anyone but the user. It is possible to |
---|
136 | specify a passphrase when generating the key; that passphrase will be |
---|
137 | used to encrypt the private part of this file. This is the |
---|
138 | default file added by |
---|
139 | .B ssh-add |
---|
140 | when no other files have been specified. |
---|
141 | .IP |
---|
142 | If |
---|
143 | .B ssh-add |
---|
144 | needs a passphrase, it will read the passphrase from the current |
---|
145 | terminal if it was run from a terminal. If |
---|
146 | .B ssh-add |
---|
147 | does not have a terminal associated with it but |
---|
148 | .SM DISPLAY\s0 |
---|
149 | is set, it |
---|
150 | will open an X11 window to read the passphrase. This is particularly |
---|
151 | useful when calling |
---|
152 | .B ssh-add |
---|
153 | from a .Xsession or related script. (Note that on some machines it |
---|
154 | may be necessary to redirect the input from /dev/null to make this work.) |
---|
155 | |
---|
156 | .SH AUTHOR |
---|
157 | .LP |
---|
158 | Tatu Ylonen <ylo@ssh.fi> |
---|
159 | |
---|
160 | .SH SEE ALSO |
---|
161 | .BR ssh-agent (1), |
---|
162 | .BR ssh-keygen (1), |
---|
163 | .BR ssh (1), |
---|
164 | .BR sshd (8) |
---|