| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 1M: System Administration Commands Oracle Solaris 11 Information Library |
- SFTP server subsystem
/usr/lib/ssh/sftp-server [-flog_facility] [-llog_level]
sftp-server implements the server side of the SSH File Transfer Protocol asdefined in the IETFdraft-ietf-secsh-filexfer.
sftp-server is a subsystem forsshd(1M) and must not be run directly.Command-line flags tosftp-server should be specified in the Subsystem declaration. Seesshd_config(4)for more information.
To enable thesftp-server subsystem forsshd add the following to/etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
To runsftp-server in achroot configuration, useinternal-sftp instead of/usr/lib/ssh/sftp-server.Otherwise, thechroot directory must contain the necessary files and directories tosupport the user's session. See theChrootDirectory andSubsystem options insshd_config(4)) formore information on howsshd andsftp-server work withchroot(2).
Seesshd_config(4) for a description of the format and contents of thatfile.
There is no relationship between the protocol used bysftp-server and theFTP protocol (RFC 959) provided byin.ftpd.
For logging to work,sftp-server must be able to access/dev/log. Useofsftp-server in achroot configuration therefore requires thatsyslogd(1M) establish alogging socket inside thechroot directory.
Valid options are listed below. As stated above, these options, if used,are specified in the Subsystem declaration ofsshd_config.
Specifies the facility code that is used when logging messages fromsftp-server. The possible values are:DAEMON,USER,AUTH,LOCAL0,LOCAL1,LOCAL2,LOCAL3,LOCAL4,LOCAL5,LOCAL6,LOCAL7. The default isAUTH.
Specifies which messages will be logged bysftp-server. The possible values are:QUIET,FATAL,ERROR,INFO,VERBOSE,DEBUG,DEBUG1,DEBUG2, andDEBUG3.INFO andVERBOSE log transactions thatsftp-server performs on behalf of the client.DEBUG andDEBUG1 are equivalent.DEBUG2 andDEBUG3 each specify higher levels of debugging output. The default isERROR.
Sets an explicitumask(2) to be applied to newly-created files and directories, instead of the user's default mask.
The following exit values are returned:
Successful completion.
An error occurred.
Server-side binary.
Seeattributes(5) for descriptions of the following attributes:
|
sftp(1),ssh(1),ssh-add(1),ssh-keygen(1),sshd(1M),syslogd(1M),chroot(2),umask(2),sshd_config(4),attributes(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |