blob: ee73c345b98efa816af39d5b282e5579b9ff767c [file] [log] [blame]
Darren Tucker7bee06a2009-10-07 08:47:47 +11001.\" $OpenBSD: sftp-server.8,v 1.17 2009/08/31 21:01:29 djm Exp $
Damien Millere4340be2000-09-16 13:29:08 +11002.\"
Ben Lindstrom92a2e382001-03-05 06:59:27 +00003.\" Copyright (c) 2000 Markus Friedl. All rights reserved.
Damien Millere4340be2000-09-16 13:29:08 +11004.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the
12.\" documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\"
Darren Tucker7bee06a2009-10-07 08:47:47 +110025.Dd $Mdocdate: August 31 2009 $
Damien Miller7b28dc52000-09-05 13:34:53 +110026.Dt SFTP-SERVER 8
27.Os
28.Sh NAME
29.Nm sftp-server
30.Nd SFTP server subsystem
31.Sh SYNOPSIS
32.Nm sftp-server
Darren Tucker7bee06a2009-10-07 08:47:47 +110033.Op Fl eh
Damien Millerfef95ad2006-07-10 20:46:55 +100034.Op Fl f Ar log_facility
35.Op Fl l Ar log_level
Darren Tucker6b286a42009-10-07 08:46:21 +110036.Op Fl u Ar umask
Damien Miller7b28dc52000-09-05 13:34:53 +110037.Sh DESCRIPTION
38.Nm
39is a program that speaks the server side of SFTP protocol
40to stdout and expects client requests from stdin.
41.Nm
42is not intended to be called directly, but from
Damien Miller50a41ed2000-10-16 12:14:42 +110043.Xr sshd 8
Damien Miller7b28dc52000-09-05 13:34:53 +110044using the
45.Cm Subsystem
46option.
Damien Millerfef95ad2006-07-10 20:46:55 +100047.Pp
48Command-line flags to
49.Nm
50should be specified in the
51.Cm Subsystem
52declaration.
Damien Miller7b28dc52000-09-05 13:34:53 +110053See
Darren Tucker1f203942003-10-15 15:50:42 +100054.Xr sshd_config 5
Damien Miller7b28dc52000-09-05 13:34:53 +110055for more information.
Damien Millerfef95ad2006-07-10 20:46:55 +100056.Pp
57Valid options are:
58.Bl -tag -width Ds
Darren Tucker7bee06a2009-10-07 08:47:47 +110059.It Fl e
60Causes
61.Nm
62to print logging information to stderr instead of syslog for debugging.
Damien Millerfef95ad2006-07-10 20:46:55 +100063.It Fl f Ar log_facility
64Specifies the facility code that is used when logging messages from
65.Nm .
66The possible values are: DAEMON, USER, AUTH, LOCAL0, LOCAL1, LOCAL2,
67LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
68The default is AUTH.
Darren Tucker7bee06a2009-10-07 08:47:47 +110069.It Fl h
70Displays
71.Nm
72usage information.
Damien Millerfef95ad2006-07-10 20:46:55 +100073.It Fl l Ar log_level
74Specifies which messages will be logged by
75.Nm .
76The possible values are:
77QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3.
78INFO and VERBOSE log transactions that
79.Nm
80performs on behalf of the client.
81DEBUG and DEBUG1 are equivalent.
82DEBUG2 and DEBUG3 each specify higher levels of debugging output.
83The default is ERROR.
Darren Tucker6b286a42009-10-07 08:46:21 +110084.It Fl u Ar umask
85Sets an explicit
86.Xr umask 2
87to be applied to newly-created files and directories, instead of the
88user's default mask.
Damien Millerfef95ad2006-07-10 20:46:55 +100089.El
Damien Miller276571c2008-07-14 12:09:57 +100090.Pp
91For logging to work,
92.Nm
93must be able to access
94.Pa /dev/log .
95Use of
96.Nm
Darren Tucker5837b512009-06-21 17:52:27 +100097in a chroot configuration therefore requires that
Damien Miller276571c2008-07-14 12:09:57 +100098.Xr syslogd 8
99establish a logging socket inside the chroot directory.
Damien Miller7b28dc52000-09-05 13:34:53 +1100100.Sh SEE ALSO
Ben Lindstrom160ec622001-04-22 17:17:46 +0000101.Xr sftp 1 ,
Damien Miller7b28dc52000-09-05 13:34:53 +1100102.Xr ssh 1 ,
Darren Tucker1f203942003-10-15 15:50:42 +1000103.Xr sshd_config 5 ,
Damien Miller50a41ed2000-10-16 12:14:42 +1100104.Xr sshd 8
Ben Lindstrom160ec622001-04-22 17:17:46 +0000105.Rs
Ben Lindstrom90fd0602001-06-25 04:45:33 +0000106.%A T. Ylonen
107.%A S. Lehtinen
Ben Lindstrom160ec622001-04-22 17:17:46 +0000108.%T "SSH File Transfer Protocol"
109.%N draft-ietf-secsh-filexfer-00.txt
110.%D January 2001
111.%O work in progress material
112.Re
Damien Miller50a41ed2000-10-16 12:14:42 +1100113.Sh HISTORY
114.Nm
Darren Tucker25bd3c02006-09-26 20:14:28 +1000115first appeared in
116.Ox 2.8 .
117.Sh AUTHORS
118.An Markus Friedl Aq markus@openbsd.org