version 1.112, 2009/11/10 02:58:56 |
version 1.113, 2009/12/19 16:53:13 |
|
|
The default is |
The default is |
.Dq yes . |
.Dq yes . |
.It Cm ChrootDirectory |
.It Cm ChrootDirectory |
Specifies a path to |
Specifies the pathname of a directory to |
.Xr chroot 2 |
.Xr chroot 2 |
to after authentication. |
to after authentication. |
This path, and all its components, must be root-owned directories that are |
All components of the pathname must be root-owned directories that are |
not writable by any other user or group. |
not writable by any other user or group. |
After the chroot, |
After the chroot, |
.Xr sshd 8 |
.Xr sshd 8 |
changes the working directory to the user's home directory. |
changes the working directory to the user's home directory. |
.Pp |
.Pp |
The path may contain the following tokens that are expanded at runtime once |
The pathname may contain the following tokens that are expanded at runtime once |
the connecting user has been authenticated: %% is replaced by a literal '%', |
the connecting user has been authenticated: %% is replaced by a literal '%', |
%h is replaced by the home directory of the user being authenticated, and |
%h is replaced by the home directory of the user being authenticated, and |
%u is replaced by the username of that user. |
%u is replaced by the username of that user. |