summaryrefslogtreecommitdiff
path: root/app/ssh-askpass/x11-ssh-askpass.man.in
blob: 4f47f9b3d881a810b7e35b58643d0c00b0bdb53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
.\" x11-ssh-askpass.man
.\" Created by Matthieu Herrb <matthieu@laas.fr> for OpenBSD
.\" Modified by Jim Knoble <jmknoble@jmknoble.cx> for non-OpenBSD
.\"   distribution
.\"
.Dd @DATE@
.Dt @NAME@ 1 
.Os "Version @VERSION@"
.Sh NAME
.Nm @NAME@
.Nd an X11-based pass-phrase dialog for use with OpenSSH
.Sh SYNOPSIS
.Nm @NAME@
.Op options
.Op label
.Sh DESCRIPTION
.Nm
is an X11-based pass-phrase dialog for use with OpenSSH.
It is intended to be called from the
.Xr ssh-add 1
program and not invoked directly.
.Pp
.Nm
supports most standard Toolkit command line arguments, with the
exception of
.Ar -geometry ,
.Ar -borderwidth ,
.Ar -iconic ,
.Ar -rv ,
and
.Ar -title .
See
.Xr X 1 . 
.Pp
If exactly one non-option argument is provided on the command line, it
is displayed in the dialog instead of the default label.
If the argument contains newline characters ('\\n'), each line of text
is displayed on a separate line in the dialog.
.Pp
The features of
.Nm
are as follows:
.Bl -dash -offset indent 
.It 
Configurable via the standard X resource mechanisms
.Pa /etc/X11/app-defaults , 
.Pa ~/.Xdefaults , 
.Xr xrdb 1 , 
etc.
.It 
Requires only stock X11 libraries (\%libXt, \%libX11, \%libSM, \%libICE).
.It 
Can be configured to grab the keyboard and/or pointer (grabs the
keyboard by default, not the pointer).
.El
.Pp
The user interface is somewhat different than most password/pass-phrase
dialogs and more similar to the X11-based pass-phrase dialog that
accompanies the regular SSH distribution.
Instead of a text field that fills with asterisks or some other
character as the user enters the pass-phrase, a series of LED-like
areas light up one-by-one with each pass-phrase character entered,
beginning from the left-hand edge of the dialog.
When they reach the right-hand edge, they go dark one-by-one
again, and so on.
This gives the user feedback that pass-phrase characters have been
entered, but does not provide onlookers with a cue as to the length
of the pass-phrase.
.Pp
Pressing the 
.Sq OK
button accepts the pass-phrase (even if it is empty),
which is printed on the standard output, and the dialog exits with a
status of zero (success).
Pressing the 
.Sq Cancel
button discards the
pass-phrase, and the dialog exits with non-zero status.
.Pp
The following keystrokes work as expected:
.Pp
.Bl -tag -width "[Backspace]" -offset indent -compact
.It Bq Backspace 
.It Bq Delete
Erase previous character
.Pp
.It Bq Control+U
.It Bq Control+X
Erase entire pass-phrase
.Pp
.It Bq Enter
.It Bq Control+M
.It Bq Control+J
Accept pass-phrase (OK)
.Pp
.It Bq Escape
Discard pass-phrase (Cancel)
.El
.Sh WIDGETS
The main window of 
.Nm
has the widget hierarchy indicated below.
The widget class name is given first, followed by the instance name.
.Bl -tag -width "Dialog" -offset indent
.It Dialog
dialog
.Pp
.Bl -tag -width "Indicator" -compact
.It Indicator
indicator
.It Button
okButton 
.It Button
cancelButton
.El
.El
.Sh RESOURCES
The following resources are used to customize the application
globally: 
.Bl -tag -width 2n -offset indent
.It Cm grabKeyboard ( No class Cm GrabKeyboard )
.Bl -inset -compact
.It specifies if the application should grab the keyboard.
.It Default value:
.Dq True .
.El
.It Cm grabPointer ( No class Cm GrabPointer )
.Bl -inset -compact
.It specifies if the application should grab the pointer.
.It Default value:
.Dq False . 
.El
.It Cm grabServer ( No class Cm GrabServer )
.Bl -inset -compact
.It specifies if the application should grab the server.
.It Default value:
.Dq False . 
.El
.It Cm inputTimeout ( No class Cm InputTimeout )
.Bl -inset -compact
.It the number of seconds
.Nm
should wait for a key or
button press before it gives up and exits.  A timeout of
.Dq 0
means wait forever.
.It Default value:
.Dq 0 .
.El
.It Cm defaultXResolution ( No class Cm DefaultXResolution )
.Bl -inset -compact
.It the number of pixels per unit length that horizontal
spacing and width values are intended for.  If the actual
horizontal (x) resolution of the X server is significantly
greater or less than this value, portions of the dialog,
indicator, and button widgets are stretched or shrunk
horizontally to take the difference into account. The value
is a positive integer, followed by a slash
.Cm ( / )
and a one- or two-character unit abbreviation.  Valid units
are inches
.Cm ( in
or
.Cm i )
and meters
.Cm ( m ) .
.It Default value:
.Dq 75/in
(75 pixels per inch).
.El
.It Cm defaultYResolution ( No class Cm DefaultYResolution )
.Bl -inset -compact
.It the number of pixels per unit length that vertical
spacing and height values are intended for.  If the actual
vertical (y) resolution of the X server is significantly
greater or less than this value, portions of the dialog,
indicator, and button widgets are stretched or shrunk
vertically to take the difference into account. Valid
values are the same as for
.Cm defaultXResolution
above.
.It Default value:
.Dq 75/in
(75 pixels per inch).
.El
.It Cm xResolutionFuzz ( No class Cm XResolutionFuzz )
.Bl -inset -compact
.It the range of
.Dq fuzz
around the value of
.Cm defaultXResolution
beyond which some widgets will be stretched or shrunk
horizontally to fit the current actual horizontal
resolution. Valid values are the same as for
.Cm defaultXResolution .
For example, if the default X resolution is
.Dq 75/in ,
and the X resolution fuzz is
.Dq 50/in ,
then widgets won't be scaled horizontally unless the actual
horizontal resolution is less than 25 pixels per inch or
greater than 125 pixels per inch.
.It Default value:
.Dq 20/in
(20 pixels per inch).
.El
.It Cm yResolutionFuzz ( No class Cm YResolutionFuzz )
.Bl -inset -compact
.It the range of
.Dq fuzz
around the value of
.Cm defaultYResolution
beyond which some widgets will be stretched or shrunk
vertically to fit the current actual vertical
resolution. Valid values are the same as for
.Cm defaultXResolution 
above.
.It Default value:
.Dq 20/in
(20 pixels per inch).
.El
.El
.Pp
The following resources are recognized by the Dialog widget:
.Bl -tag -width 2n -offset indent
.It Cm title ( No class Cm Title )
The title of the application as specified to the window manager.
.It Cm label ( No class Cm Label )
The label displayed above the led indicators.
.It Cm font ( No class Cm Font )
The font to be used to display the first line of label.
.It Cm fixedFont ( No class Cm FixedFont )
The font to be used to display the second and following lines of the label.
.El
.Pp
The following Resources are recognized by the dialog, button, and
indicator widgets and the main widget to customize the 3D appearance
(all measurements are in pixels):
.Bl -tag -width 2n -offset indent
.It Cm foreground ( No class Cm Foreground )
The foreground color of the widget.
This is the text color of the label for buttons and dialog and the
color of the active led for the indicator. 
.It Cm background ( No class Cm Background )
The background color of the widget.
In the case of the indicator this is the color of the inactive led. 
.It Cm topShadowColor ( No class Cm TopShadowColor )
The color used by the sides of the widget exposed to the light (top
and left).
.It Cm bottomShadowColor ( No class Cm BottomShadowColor )
The color used by the sides of the widget in the shadow (right and
bottom). 
.It Cm shadowThickness ( No class Cm ShadowTickness )
The thickness of the 3D border of the widget.
.It Cm borderColor ( No class Cm BorderColor )
The color of the border around the widget. 
.It Cm borderWidth ( No class Cm BorderWidth )
The width of the border around the widget.
.It Cm horizontalSpacing ( No class Cm HorizontalSpacing )
The space to leave on left and right sides of the widget.
.It Cm verticalSpacing ( No class Cm VerticalSpacing )
The space to leave on top and bottom sides of the widget.
.El
.Pp
The following resources are recognized by the indicator widgets:
.Bl -tag -width 2n -offset indent
.It Cm minimumCount ( No class Cm MinimumCount )
The minimum number of indicators to display in the dialog.
.It Cm maximumCount ( No class Cm MaximumCount )
The maximum number of indicators to display in the dialog.
.El
.Pp
Each button uses the following resources to customize its label:
.Bl -tag -width 2n -offset indent
.It Cm label ( No class Cm Label )
the string to display on the button.
.It Cm font ( No class Cm Font )
the font to use for this button label.
.El
.Sh FILES
.Bl -tag -width "/etc/X11/app-defaults/SshAskpass" -compact
.It Pa /etc/X11/app-defaults/SshAskpass
.El
.Sh SEE ALSO
.Xr X 1 ,
.Xr ssh 1 ,
.Xr ssh-agent 1
.Sh LICENSE
Some portions of
.Nm
are derived directly or indirectly
from portions of xscreensaver by Jamie Zawinski <jwz@jwz.org>, while
others are original works.
.Pp
xscreensaver, Copyright \(co 1991-1999 Jamie Zawinski 
.Aq jwz@jwz.org
.Pp
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear in
supporting documentation.
No representations are made about the suitability of this software
for any purpose.
It is provided "as is" without express or implied warranty.
.Pp
The remaining portions fall under the following copyright and license:
.Pp
.Nm
by Jim Knoble 
.Aq jmknoble@jmknoble.cx
Copyright \(co 1999,2000,2001 Jim Knoble
.Pp
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear in
supporting documentation.