source: trunk/third/ssh/ssh-add.1 @ 12646

Revision 12646, 3.9 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12645, which included commits to RCS files with non-trunk default branches.
Line 
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
53ssh-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
76adds identities to the authentication agent,
77.B ssh-agent.
78When run without arguments, it adds the file
79.IR $HOME/\s+2.\s0ssh/identity ".
80Alternative file names can be given on the
81command line.  If any file requires a passphrase,
82.B ssh-add
83asks for the passphrase from the user.  If the -p option is given then
84the passphrase is read from stdin, otherwise if the user is using X11,
85the passphrase is requested using a small X11 program; otherwise it is
86read from the user's tty.  (Note: it may be necessary to redirect stdin
87from /dev/null to get the passphrase requested using X11.)
88.LP
89The authentication agent must be running and must be an ancestor of
90the current process for
91.B ssh-add
92to work.
93
94.SH OPTIONS
95.TP 0.5i
96.B \-p
97Read passphrase from stdin (or pipe).
98.TP
99.B \-l
100Lists all identities currently represented by the agent.
101.TP
102.B \-d
103Instead of adding the identity, removes the identity from the agent.
104.TP
105.B \-D
106Deletes all identities from the agent.
107
108.SH RETURN STATUS
109
110.B Ssh-add
111returns one of the following exit statuses.  These may be useful in scripts.
112.IP 0
113The requested operation was performed successfully.
114.IP 1
115No connection could be made to the authentication agent.  Presumably
116there is no authentication agent active in the execution environment
117of
118.B ssh-add.
119.IP 2
120The user did not supply a required passphrase.
121.IP 3
122An identify file could not be found, was not readable, or was in
123bad format.
124.IP 4
125The agent does not have the requested identity.
126.IP 5
127An unspecified error has occurred; this is a catch-all for errors not
128listed above.
129.RT
130
131.SH FILES
132.TP
133.I \&$HOME/\s+2.\s0ssh/identity
134Contains the RSA authentication identity of the user.  This file
135should not be readable by anyone but the user.  It is possible to
136specify a passphrase when generating the key; that passphrase will be
137used to encrypt the private part of this file.  This is the
138default file added by
139.B ssh-add
140when no other files have been specified.
141.IP
142If
143.B ssh-add
144needs a passphrase, it will read the passphrase from the current
145terminal if it was run from a terminal.  If
146.B ssh-add
147does not have a terminal associated with it but
148.SM DISPLAY\s0
149is set, it
150will open an X11 window to read the passphrase.  This is particularly
151useful when calling
152.B ssh-add
153from a .Xsession or related script.  (Note that on some machines it
154may be necessary to redirect the input from /dev/null to make this work.)
155
156.SH AUTHOR
157.LP
158Tatu 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)
Note: See TracBrowser for help on using the repository browser.