1SFTP-SERVER(8)            BSD System Manager's Manual           SFTP-SERVER(8)
2

NAME

4     sftp-server — SFTP server subsystem
5

SYNOPSIS

7     sftp-server [-f log_facility] [-l log_level] [-u umask]
8                 [-m force_file_perms]
9

DESCRIPTION

11     sftp-server is a program that speaks the server side of SFTP protocol to
12     stdout and expects client requests from stdin.  sftp-server is not
13     intended to be called directly, but from sshd(8) using the Subsystem
14     option.
15
16     Command-line flags to sftp-server should be specified in the Subsystem
17     declaration.  See sshd_config(5) for more information.
18
19     Valid options are:
20
21     -f log_facility
22             Specifies the facility code that is used when logging messages
23             from sftp-server.  The possible values are: DAEMON, USER, AUTH,
24             LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
25             The default is AUTH.
26
27     -l log_level
28             Specifies which messages will be logged by sftp-server.  The pos‐
29             sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG,
30             DEBUG1, DEBUG2, and DEBUG3.  INFO and VERBOSE log transactions
31             that sftp-server performs on behalf of the client.  DEBUG and
32             DEBUG1 are equivalent.  DEBUG2 and DEBUG3 each specify higher
33             levels of debugging output.  The default is ERROR.
34
35     -u umask
36             Sets an explicit umask(2) to be applied to newly-created files
37             and directories, instead of the user's default mask.
38
39     -m force_file_perms
40             Sets explicit file permissions to be applied to newly-created
41             files instead of the default or client requested mode.  Numeric
42             values include: 777, 755, 750, 666, 644, 640, etc.  Option -u is
43             ineffective if -m is set.
44
45     For logging to work, sftp-server must be able to access /dev/log.  Use of
46     sftp-server in a chroot configuration therefore requires that syslogd(8)
47     establish a logging socket inside the chroot directory.
48

SEE ALSO

50     sftp(1), ssh(1), sshd_config(5), sshd(8)
51
52     T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
53     filexfer-00.txt, January 2001, work in progress material.
54

HISTORY

56     sftp-server first appeared in OpenBSD 2.8.
57

AUTHORS

59     Markus Friedl <markus@openbsd.org>
60
61BSD                              June 21, 2019                             BSD
Impressum