version 1.244, 2006/01/06 13:27:32 |
version 1.245, 2006/01/06 13:29:10 |
|
|
The format of this file is described in the |
The format of this file is described in the |
.Xr sshd 8 |
.Xr sshd 8 |
manual page. |
manual page. |
In the simplest form the format is the same as the |
|
.Pa .pub |
|
identity files. |
|
This file is not highly sensitive, but the recommended |
This file is not highly sensitive, but the recommended |
permissions are read/write for the user, and not accessible by others. |
permissions are read/write for the user, and not accessible by others. |
.Pp |
.Pp |
|
|
.It ~/.ssh/rc |
.It ~/.ssh/rc |
Commands in this file are executed by |
Commands in this file are executed by |
.Nm |
.Nm |
when the user logs in just before the user's shell (or command) is |
when the user logs in, just before the user's shell (or command) is |
started. |
started. |
See the |
See the |
.Xr sshd 8 |
.Xr sshd 8 |
|
|
.It /etc/ssh/ssh_host_dsa_key |
.It /etc/ssh/ssh_host_dsa_key |
.It /etc/ssh/ssh_host_rsa_key |
.It /etc/ssh/ssh_host_rsa_key |
These three files contain the private parts of the host keys |
These three files contain the private parts of the host keys |
and are used for |
and are used for host-based authentication. |
.Cm RhostsRSAAuthentication |
If protocol version 1 is used, |
and |
|
.Cm HostbasedAuthentication . |
|
If the protocol version 1 |
|
.Cm RhostsRSAAuthentication |
|
method is used, |
|
.Nm |
.Nm |
must be setuid root, since the host key is readable only by root. |
must be setuid root, since the host key is readable only by root. |
For protocol version 2, |
For protocol version 2, |
.Nm |
.Nm |
uses |
uses |
.Xr ssh-keysign 8 |
.Xr ssh-keysign 8 |
to access the host keys for |
to access the host keys, |
.Cm HostbasedAuthentication . |
eliminating the requirement that |
This eliminates the requirement that |
|
.Nm |
.Nm |
be setuid root when that authentication method is used. |
be setuid root when host-based authentication is used. |
By default |
By default |
.Nm |
.Nm |
is not setuid root. |
is not setuid root. |
|
|
.It /etc/ssh/sshrc |
.It /etc/ssh/sshrc |
Commands in this file are executed by |
Commands in this file are executed by |
.Nm |
.Nm |
when the user logs in just before the user's shell (or command) is started. |
when the user logs in, just before the user's shell (or command) is started. |
See the |
See the |
.Xr sshd 8 |
.Xr sshd 8 |
manual page for more information. |
manual page for more information. |