]> andersk Git - openssh.git/blame - ssh-add.1
- (bal) Put USE_PIPES back into sco3.2v5
[openssh.git] / ssh-add.1
CommitLineData
bf740959 1.\" -*- nroff -*-
2.\"
bf740959 3.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
bf740959 4.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5.\" All rights reserved
6.\"
bcbf86ec 7.\" As far as I am concerned, the code I have written for this software
8.\" can be used freely for any purpose. Any derived versions of this
9.\" software must be clearly marked as such, and if the derived work is
10.\" incompatible with the protocol description in the RFC file, it must be
11.\" called by a name other than "ssh" or "Secure Shell".
12.\"
13.\"
14.\" Copyright (c) 1999,2000 Markus Friedl. All rights reserved.
15.\" Copyright (c) 1999 Aaron Campbell. All rights reserved.
16.\" Copyright (c) 1999 Theo de Raadt. All rights reserved.
17.\"
18.\" Redistribution and use in source and binary forms, with or without
19.\" modification, are permitted provided that the following conditions
20.\" are met:
21.\" 1. Redistributions of source code must retain the above copyright
22.\" notice, this list of conditions and the following disclaimer.
23.\" 2. Redistributions in binary form must reproduce the above copyright
24.\" notice, this list of conditions and the following disclaimer in the
25.\" documentation and/or other materials provided with the distribution.
bf740959 26.\"
bcbf86ec 27.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
28.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
31.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bf740959 37.\"
38.Dd September 25, 1999
39.Dt SSH-ADD 1
40.Os
41.Sh NAME
42.Nm ssh-add
2e73a022 43.Nd adds RSA or DSA identities for the authentication agent
bf740959 44.Sh SYNOPSIS
45.Nm ssh-add
f095fcc7 46.Op Fl lLdD
bf740959 47.Op Ar
f54651ce 48.Sh DESCRIPTION
bf740959 49.Nm
2e73a022 50adds RSA or DSA identities to the authentication agent,
bf740959 51.Xr ssh-agent 1 .
52When run without arguments, it adds the file
53.Pa $HOME/.ssh/identity .
4fe2af09 54Alternative file names can be given on the command line.
55If any file requires a passphrase,
bf740959 56.Nm
f54651ce 57asks for the passphrase from the user.
4fe2af09 58The Passphrase it is read from the user's tty.
bf740959 59.Pp
60The authentication agent must be running and must be an ancestor of
61the current process for
62.Nm
63to work.
64.Pp
65The options are as follows:
66.Bl -tag -width Ds
67.It Fl l
f095fcc7 68Lists fingerprints of all identities currently represented by the agent.
69.It Fl L
70Lists public key parameters of all identities currently represented by the agent.
bf740959 71.It Fl d
72Instead of adding the identity, removes the identity from the agent.
73.It Fl D
74Deletes all identities from the agent.
75.El
76.Sh FILES
77.Bl -tag -width Ds
57112b5a 78.It Pa $HOME/.ssh/identity
4fe2af09 79Contains the RSA authentication identity of the user.
80This file should not be readable by anyone but the user.
bf740959 81Note that
82.Nm
83ignores this file if it is accessible by others.
84It is possible to
85specify a passphrase when generating the key; that passphrase will be
4fe2af09 86used to encrypt the private part of this file.
87This is the default file added by
bf740959 88.Nm
89when no other files have been specified.
2e73a022 90.It Pa $HOME/.ssh/id_dsa
91Contains the DSA authentication identity of the user.
b5e300c2 92.El
57112b5a 93.Sh ENVIRONMENT
94.Bl -tag -width Ds
95.It Ev "DISPLAY" and "SSH_ASKPASS"
bf740959 96If
97.Nm
98needs a passphrase, it will read the passphrase from the current
4fe2af09 99terminal if it was run from a terminal.
100If
bf740959 101.Nm
102does not have a terminal associated with it but
103.Ev DISPLAY
aa3378df 104and
105.Ev SSH_ASKPASS
106are set, it will execute the program specified by
107.Ev SSH_ASKPASS
4fe2af09 108and open an X11 window to read the passphrase.
109This is particularly useful when calling
bf740959 110.Nm
111from a
112.Pa .Xsession
4fe2af09 113or related script.
114(Note that on some machines it
bf740959 115may be necessary to redirect the input from
116.Pa /dev/null
117to make this work.)
b5e300c2 118.El
fa08c86b 119.Sh AUTHORS
bf740959 120Tatu Ylonen <ylo@cs.hut.fi>
121.Pp
122OpenSSH
123is a derivative of the original (free) ssh 1.2.12 release, but with bugs
4fe2af09 124removed and newer features re-added.
125Rapidly after the 1.2.12 release,
126newer versions bore successively more restrictive licenses.
127This version of OpenSSH
bf740959 128.Bl -bullet
129.It
bcbf86ec 130has all components of a restrictive nature (i.e., patents, see
131.Xr crypto 3 )
bf740959 132directly removed from the source code; any licensed or patented components
133are chosen from
134external libraries.
135.It
136has been updated to support ssh protocol 1.5.
137.It
f54651ce 138contains added support for
bf740959 139.Xr kerberos 8
140authentication and ticket passing.
141.It
142supports one-time password authentication with
143.Xr skey 1 .
144.El
bf740959 145.Sh SEE ALSO
146.Xr ssh 1 ,
147.Xr ssh-agent 1 ,
148.Xr ssh-keygen 1 ,
149.Xr sshd 8 ,
bcbf86ec 150.Xr crypto 3
This page took 0.942891 seconds and 5 git commands to generate.