summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-01-06 14:48:52 +1100
committerDamien Miller <djm@mindrot.org>2006-01-06 14:48:52 +1100
commitfb8ea74116bebb5cf68b1c346604895bd16c45e5 (patch)
tree1585476450b0ee013a13aba7661e7d7c649e02b2
parent6aa2290b0c57fb35125c03e99cfc017ee4730df9 (diff)
- jmc@cvs.openbsd.org 2006/01/03 16:52:36
[ssh.1] put FILES in some sort of order: sort by pathname
-rw-r--r--ChangeLog5
-rw-r--r--ssh.1234
2 files changed, 121 insertions, 118 deletions
diff --git a/ChangeLog b/ChangeLog
index b5157efe9..df3e17d21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,9 @@
9 - jmc@cvs.openbsd.org 2006/01/03 16:35:30 9 - jmc@cvs.openbsd.org 2006/01/03 16:35:30
10 [ssh.1] 10 [ssh.1]
11 use a larger width for the ENVIRONMENT list; 11 use a larger width for the ENVIRONMENT list;
12 - jmc@cvs.openbsd.org 2006/01/03 16:52:36
13 [ssh.1]
14 put FILES in some sort of order: sort by pathname
12 15
1320060103 1620060103
14 - (djm) [channels.c] clean up harmless merge error, from reyk@ 17 - (djm) [channels.c] clean up harmless merge error, from reyk@
@@ -3643,4 +3646,4 @@
3643 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3646 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3644 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3647 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3645 3648
3646$Id: ChangeLog,v 1.4075 2006/01/06 03:48:34 djm Exp $ 3649$Id: ChangeLog,v 1.4076 2006/01/06 03:48:52 djm Exp $
diff --git a/ssh.1 b/ssh.1
index bf6e7cb4a..6042633df 100644
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh.1,v 1.237 2006/01/03 16:35:30 jmc Exp $ 37.\" $OpenBSD: ssh.1,v 1.238 2006/01/03 16:52:36 jmc Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -1054,109 +1054,6 @@ option in
1054.Xr sshd_config 5 . 1054.Xr sshd_config 5 .
1055.Sh FILES 1055.Sh FILES
1056.Bl -tag -width Ds -compact 1056.Bl -tag -width Ds -compact
1057.It ~/.ssh/known_hosts
1058Records host keys for all hosts the user has logged into that are not
1059in
1060.Pa /etc/ssh/ssh_known_hosts .
1061See
1062.Xr sshd 8 .
1063.Pp
1064.It ~/.ssh/identity
1065.It ~/.ssh/id_dsa
1066.It ~/.ssh/id_rsa
1067Contains the private key for authentication.
1068These files
1069contain sensitive data and should be readable by the user but not
1070accessible by others (read/write/execute).
1071.Nm
1072will simply ignore a private key file if it is accessible by others.
1073It is possible to specify a passphrase when
1074generating the key which will be used to encrypt the
1075sensitive part of this file using 3DES.
1076.Pp
1077.It ~/.ssh/identity.pub
1078.It ~/.ssh/id_dsa.pub
1079.It ~/.ssh/id_rsa.pub
1080Contains the public key for authentication.
1081These files are not
1082sensitive and can (but need not) be readable by anyone.
1083They are
1084never used automatically and are not necessary: they are only provided for
1085the convenience of the user.
1086.Pp
1087.It ~/.ssh/config
1088This is the per-user configuration file.
1089The file format and configuration options are described in
1090.Xr ssh_config 5 .
1091Because of the potential for abuse, this file must have strict permissions:
1092read/write for the user, and not accessible by others.
1093.Pp
1094.It ~/.ssh/authorized_keys
1095Lists the public keys (RSA/DSA) that can be used for logging in as this user.
1096The format of this file is described in the
1097.Xr sshd 8
1098manual page.
1099In the simplest form the format is the same as the
1100.Pa .pub
1101identity files.
1102This file is not highly sensitive, but the recommended
1103permissions are read/write for the user, and not accessible by others.
1104.Pp
1105.It /etc/ssh/ssh_known_hosts
1106Systemwide list of known host keys.
1107This file should be prepared by the
1108system administrator to contain the public host keys of all machines in the
1109organization.
1110This file should be world-readable.
1111This file contains
1112public keys, one per line, in the following format (fields separated
1113by spaces): system name, public key and optional comment field.
1114When different names are used
1115for the same machine, all such names should be listed, separated by
1116commas.
1117The format is described in the
1118.Xr sshd 8
1119manual page.
1120.Pp
1121The canonical system name (as returned by name servers) is used by
1122.Xr sshd 8
1123to verify the client host when logging in; other names are needed because
1124.Nm
1125does not convert the user-supplied name to a canonical name before
1126checking the key, because someone with access to the name servers
1127would then be able to fool host authentication.
1128.Pp
1129.It Pa /etc/ssh/ssh_config
1130Systemwide configuration file.
1131The file format and configuration options are described in
1132.Xr ssh_config 5 .
1133.Pp
1134.It /etc/ssh/ssh_host_key
1135.It /etc/ssh/ssh_host_dsa_key
1136.It /etc/ssh/ssh_host_rsa_key
1137These three files contain the private parts of the host keys
1138and are used for
1139.Cm RhostsRSAAuthentication
1140and
1141.Cm HostbasedAuthentication .
1142If the protocol version 1
1143.Cm RhostsRSAAuthentication
1144method is used,
1145.Nm
1146must be setuid root, since the host key is readable only by root.
1147For protocol version 2,
1148.Nm
1149uses
1150.Xr ssh-keysign 8
1151to access the host keys for
1152.Cm HostbasedAuthentication .
1153This eliminates the requirement that
1154.Nm
1155be setuid root when that authentication method is used.
1156By default
1157.Nm
1158is not setuid root.
1159.Pp
1160.It ~/.rhosts 1057.It ~/.rhosts
1161This file is used in 1058This file is used in
1162.Cm RhostsRSAAuthentication 1059.Cm RhostsRSAAuthentication
@@ -1206,6 +1103,68 @@ authentication without permitting login with
1206or 1103or
1207.Xr rsh 1 . 1104.Xr rsh 1 .
1208.Pp 1105.Pp
1106.It ~/.ssh/authorized_keys
1107Lists the public keys (RSA/DSA) that can be used for logging in as this user.
1108The format of this file is described in the
1109.Xr sshd 8
1110manual page.
1111In the simplest form the format is the same as the
1112.Pa .pub
1113identity files.
1114This file is not highly sensitive, but the recommended
1115permissions are read/write for the user, and not accessible by others.
1116.Pp
1117.It ~/.ssh/config
1118This is the per-user configuration file.
1119The file format and configuration options are described in
1120.Xr ssh_config 5 .
1121Because of the potential for abuse, this file must have strict permissions:
1122read/write for the user, and not accessible by others.
1123.Pp
1124.It ~/.ssh/environment
1125Contains additional definitions for environment variables, see section
1126.Sx ENVIRONMENT
1127above.
1128.Pp
1129.It ~/.ssh/identity
1130.It ~/.ssh/id_dsa
1131.It ~/.ssh/id_rsa
1132Contains the private key for authentication.
1133These files
1134contain sensitive data and should be readable by the user but not
1135accessible by others (read/write/execute).
1136.Nm
1137will simply ignore a private key file if it is accessible by others.
1138It is possible to specify a passphrase when
1139generating the key which will be used to encrypt the
1140sensitive part of this file using 3DES.
1141.Pp
1142.It ~/.ssh/identity.pub
1143.It ~/.ssh/id_dsa.pub
1144.It ~/.ssh/id_rsa.pub
1145Contains the public key for authentication.
1146These files are not
1147sensitive and can (but need not) be readable by anyone.
1148They are
1149never used automatically and are not necessary: they are only provided for
1150the convenience of the user.
1151.Pp
1152.It ~/.ssh/known_hosts
1153Records host keys for all hosts the user has logged into that are not
1154in
1155.Pa /etc/ssh/ssh_known_hosts .
1156See
1157.Xr sshd 8 .
1158.Pp
1159.It ~/.ssh/rc
1160Commands in this file are executed by
1161.Nm
1162when the user logs in just before the user's shell (or command) is
1163started.
1164See the
1165.Xr sshd 8
1166manual page for more information.
1167.Pp
1209.It /etc/hosts.equiv 1168.It /etc/hosts.equiv
1210This file is used during 1169This file is used during
1211.Cm RhostsRSAAuthentication 1170.Cm RhostsRSAAuthentication
@@ -1229,27 +1188,68 @@ This file may be useful to permit logins using
1229.Nm 1188.Nm
1230but not using rsh/rlogin. 1189but not using rsh/rlogin.
1231.Pp 1190.Pp
1232.It /etc/ssh/sshrc 1191.It Pa /etc/ssh/ssh_config
1233Commands in this file are executed by 1192Systemwide configuration file.
1193The file format and configuration options are described in
1194.Xr ssh_config 5 .
1195.Pp
1196.It /etc/ssh/ssh_host_key
1197.It /etc/ssh/ssh_host_dsa_key
1198.It /etc/ssh/ssh_host_rsa_key
1199These three files contain the private parts of the host keys
1200and are used for
1201.Cm RhostsRSAAuthentication
1202and
1203.Cm HostbasedAuthentication .
1204If the protocol version 1
1205.Cm RhostsRSAAuthentication
1206method is used,
1234.Nm 1207.Nm
1235when the user logs in just before the user's shell (or command) is started. 1208must be setuid root, since the host key is readable only by root.
1236See the 1209For protocol version 2,
1210.Nm
1211uses
1212.Xr ssh-keysign 8
1213to access the host keys for
1214.Cm HostbasedAuthentication .
1215This eliminates the requirement that
1216.Nm
1217be setuid root when that authentication method is used.
1218By default
1219.Nm
1220is not setuid root.
1221.Pp
1222.It /etc/ssh/ssh_known_hosts
1223Systemwide list of known host keys.
1224This file should be prepared by the
1225system administrator to contain the public host keys of all machines in the
1226organization.
1227This file should be world-readable.
1228This file contains
1229public keys, one per line, in the following format (fields separated
1230by spaces): system name, public key and optional comment field.
1231When different names are used
1232for the same machine, all such names should be listed, separated by
1233commas.
1234The format is described in the
1237.Xr sshd 8 1235.Xr sshd 8
1238manual page for more information. 1236manual page.
1239.Pp 1237.Pp
1240.It ~/.ssh/rc 1238The canonical system name (as returned by name servers) is used by
1239.Xr sshd 8
1240to verify the client host when logging in; other names are needed because
1241.Nm
1242does not convert the user-supplied name to a canonical name before
1243checking the key, because someone with access to the name servers
1244would then be able to fool host authentication.
1245.Pp
1246.It /etc/ssh/sshrc
1241Commands in this file are executed by 1247Commands in this file are executed by
1242.Nm 1248.Nm
1243when the user logs in just before the user's shell (or command) is 1249when the user logs in just before the user's shell (or command) is started.
1244started.
1245See the 1250See the
1246.Xr sshd 8 1251.Xr sshd 8
1247manual page for more information. 1252manual page for more information.
1248.Pp
1249.It ~/.ssh/environment
1250Contains additional definitions for environment variables, see section
1251.Sx ENVIRONMENT
1252above.
1253.El 1253.El
1254.Sh SEE ALSO 1254.Sh SEE ALSO
1255.Xr gzip 1 , 1255.Xr gzip 1 ,