summaryrefslogtreecommitdiff
path: root/usr/src/man/man1m/ssh-keysign.sunssh.1m
blob: 8b3836e8de236738c39c3c066cf1ce3c35df649a (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
'\" te
.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH SSH-KEYSIGN 1M "Jun 9, 2004"
.SH NAME
ssh-keysign \- ssh helper program for host-based authentication
.SH SYNOPSIS
.LP
.nf
\fBssh-keysign\fR
.fi

.SH DESCRIPTION
.LP
\fBssh-keysign\fR is used by \fBssh\fR(1) to access the local host keys and
generate the digital signature required during host-based authentication with
SSH protocol version 2. This signature is of data that includes, among other
items, the name of the client host and the name of the client user.
.sp
.LP
\fBssh-keysign\fR is disabled by default and can be enabled only in the global
client configuration file \fB/etc/ssh/ssh_config\fR by setting
\fBHostbasedAuthentication\fR to \fByes\fR.
.sp
.LP
\fBssh-keysign\fR is not intended to be invoked by the user, but from
\fBssh\fR. See \fBssh\fR(1) and \fBsshd\fR(1M) for more information about
host-based authentication.
.SH FILES
.ne 2
.na
\fB\fB/etc/ssh/ssh_config\fR\fR
.ad
.RS 29n
Controls whether \fBssh-keysign\fR is enabled.
.RE

.sp
.ne 2
.na
\fB\fB/etc/ssh/ssh_host_dsa_key\fR\fR
.ad
.br
.na
\fB\fB/etc/ssh/ssh_host_rsa_key\fR\fR
.ad
.RS 29n
These files contain the private parts of the host keys used to generate the
digital signature. They should be owned by root, readable only by root, and not
accessible to others. Because they are readable only by root, \fBssh-keysign\fR
must be \fBset-uid\fR root if host-based authentication is used.
.RE

.SH SECURITY
.LP
ssh-keysign will not sign host-based authentication data under the following
conditions:
.RS +4
.TP
.ie t \(bu
.el o
If the \fBHostbasedAuthentication\fR client configuration parameter is not set
to \fByes\fR in \fB/etc/ssh/ssh_config\fR. This setting cannot be overriden in
users' \fB~/.ssh/ssh_config\fR files.
.RE
.RS +4
.TP
.ie t \(bu
.el o
If the client hostname and username in \fB/etc/ssh/ssh_config\fR do not match
the canonical hostname of the client where \fBssh-keysign\fR is invoked and the
name of the user invoking \fBssh-keysign\fR.
.RE
.sp
.LP
In spite of \fBssh-keysign\fR's restrictions on the contents of the host-based
authentication data, there remains the ability of users to use it as an avenue
for obtaining the client's private host keys. For this reason host-based
authentication is turned off by default.
.SH ATTRIBUTES
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Evolving
.TE

.SH SEE ALSO
.LP
\fBssh\fR(1), \fBsshd\fR(1M), \fBssh_config\fR(4), \fBattributes\fR(5)
.SH AUTHORS
.LP
Markus Friedl, \fBmarkus@openbsd.org\fR
.SH HISTORY
.LP
\fBssh-keysign\fR first appeared in Ox 3.2.