summaryrefslogtreecommitdiff
path: root/ssh-add.1
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-add.1')
-rw-r--r--ssh-add.135
1 files changed, 28 insertions, 7 deletions
diff --git a/ssh-add.1 b/ssh-add.1
index 58d42138e..2786df514 100644
--- a/ssh-add.1
+++ b/ssh-add.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ssh-add.1,v 1.79 2020/02/07 03:57:31 djm Exp $ 1.\" $OpenBSD: ssh-add.1,v 1.81 2020/07/14 23:57:01 djm Exp $
2.\" 2.\"
3.\" Author: Tatu Ylonen <ylo@cs.hut.fi> 3.\" Author: Tatu Ylonen <ylo@cs.hut.fi>
4.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4.\" Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -35,7 +35,7 @@
35.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 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. 36.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37.\" 37.\"
38.Dd $Mdocdate: February 7 2020 $ 38.Dd $Mdocdate: July 14 2020 $
39.Dt SSH-ADD 1 39.Dt SSH-ADD 1
40.Os 40.Os
41.Sh NAME 41.Sh NAME
@@ -113,6 +113,11 @@ If no public key is found at a given path,
113will append 113will append
114.Pa .pub 114.Pa .pub
115and retry. 115and retry.
116If the argument list consists of
117.Dq -
118then
119.Nm
120will read public keys to be removed from standard input.
116.It Fl E Ar fingerprint_hash 121.It Fl E Ar fingerprint_hash
117Specifies the hash algorithm used when displaying key fingerprints. 122Specifies the hash algorithm used when displaying key fingerprints.
118Valid options are: 123Valid options are:
@@ -169,7 +174,7 @@ Lock the agent with a password.
169.El 174.El
170.Sh ENVIRONMENT 175.Sh ENVIRONMENT
171.Bl -tag -width Ds 176.Bl -tag -width Ds
172.It Ev "DISPLAY" and "SSH_ASKPASS" 177.It Ev "DISPLAY", "SSH_ASKPASS" and "SSH_ASKPASS_REQUIRE"
173If 178If
174.Nm 179.Nm
175needs a passphrase, it will read the passphrase from the current 180needs a passphrase, it will read the passphrase from the current
@@ -190,10 +195,26 @@ This is particularly useful when calling
190from a 195from a
191.Pa .xsession 196.Pa .xsession
192or related script. 197or related script.
193(Note that on some machines it 198.Pp
194may be necessary to redirect the input from 199.Ev SSH_ASKPASS_REQUIRE
195.Pa /dev/null 200allows further control over the use of an askpass program.
196to make this work.) 201If this variable is set to
202.Dq never
203then
204.Nm
205will never attempt to use one.
206If it is set to
207.Dq prefer ,
208then
209.Nm
210will prefer to use the askpass program instead of the TTY when requesting
211passwords.
212Finally, if the variable is set to
213.Dq force ,
214then the askpass program will be used for all passphrase input regardless
215of whether
216.Ev DISPLAY
217is set.
197.It Ev SSH_AUTH_SOCK 218.It Ev SSH_AUTH_SOCK
198Identifies the path of a 219Identifies the path of a
199.Ux Ns -domain 220.Ux Ns -domain