info > sftp-server(8)

📘 SFTP-SERVER(8) — BSD System Manager's Manual SFTP-SERVER(8)

📋 NAME

sftp-server — OpenSSH SFTP server subsystem

🚀 Quick Reference

Use CaseCommandDescription
🔧 Start SFTP subsystem/usr/libexec/sftp-serverDefault invocation via sshd Subsystem
🐛 Debug loggingsftp-server -e -l DEBUGLog to stderr with debug level
🏷️ Set log facilitysftp-server -f LOCAL0Use a specific syslog facility
📂 Starting directorysftp-server -d /chroot/%uAlternate start directory with token expansion
🔒 Read-only modesftp-server -RDeny all write operations
🚫 Deny specific requestssftp-server -P write,renameBlock certain SFTP protocol requests
✅ Allow only specific requestssftp-server -p read,open,closePermit only a subset of requests
❓ Query supported requestssftp-server -Q requestsList all request types for allow/deny lists
🔢 Set umasksftp-server -u 022Override default umask for new files

🖥️ SYNOPSIS

sftp-server [-ehR] [-d start_directory] [-f log_facility] [-l log_level]
            [-P denied_requests] [-p allowed_requests] [-u umask]
sftp-server -Q protocol_feature

📖 DESCRIPTION

sftp-server is a program that speaks the server side of SFTP protocol to stdout and expects client requests from stdin. sftp-server is not intended to be called directly, but from sshd(8) using the Subsystem option.

Command-line flags to sftp-server should be specified in the Subsystem declaration. See sshd_config(5) for more information.

🔧 Options

On some systems, sftp-server must be able to access /dev/log for logging to work, and use of sftp-server in a chroot configuration therefore requires that syslogd(8) establish a logging socket inside the chroot directory.

📚 SEE ALSO

T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-filexfer-02.txt, October 2001, work in progress material.

📜 HISTORY

sftp-server first appeared in OpenBSD 2.8.

✍️ AUTHORS

Markus Friedl <markus AT openbsd.org>

sftp-server(8)
📘 SFTP-SERVER(8) — BSD System Manager's Manual SFTP-SERVER(8) 📋 NAME 🚀 Quick Reference 🖥️ SYNOPSIS 📖 DESCRIPTION
🔧 Options
📚 SEE ALSO 📜 HISTORY ✍️ AUTHORS

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-05 18:39 @216.73.216.192
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^