Add documentation for SFTP upload directory and target configuration
This commit is contained in:
1 parent
54fe7f6c90
commit
9d8d6784f6
1 file changed
+10
@@ -2529,6 +2529,14 @@ sftp_password_authentication: !!str "no"
|
||||
# ~/.ssh/authorized_keys
|
||||
# password: password hash (optional, default: unchanged)
|
||||
# update_password: always | on_create (optional, default: always)
|
||||
# upload_dir: path relative to home (optional)
|
||||
# upload_target: absolute path inside home (optional)
|
||||
#
|
||||
# 'upload_dir' without 'upload_target' is a directory owned by the user.
|
||||
# With 'upload_target' it is a (relative) symlink to that directory. The
|
||||
# target must exist and must be inside the home (= chroot) - a symlink
|
||||
# pointing outside the chroot can't be followed by the sftp user. An
|
||||
# existing file/directory at 'upload_dir' is never replaced.
|
||||
#
|
||||
# ~/.ssh and ~/.ssh/authorized_keys are always created (owned by the
|
||||
# user), an existing authorized_keys is never truncated. Without
|
||||
@@ -2560,6 +2568,8 @@ sftp_password_authentication: !!str "no"
|
||||
#
|
||||
# - name: www-data
|
||||
# existing_user: true
|
||||
# upload_dir: upload
|
||||
# upload_target: /var/www/html/site
|
||||
# ssh_keys:
|
||||
# - 'ssh-ed25519 AAAA... user@host'
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user