sftp: sshでログインさせず、特定ディレクトリのみ利用させる
/etc/ssh/sshd_conf
Subsystem sftp internal-sftp
Match AllowGroups sftpuser
ChrootDirectory /home/sftpuser/%u/data
X11Forwarding no
AllowTcpForwarding no
PasswordAuthentication yes
ForceCommand internal-sftp
とりあえず sftpuserグループの人は、それぞれのディレクトリ
のsftpdataに書き込めるように設定する必要がある。
- Prev ファイルサイズ関連
- Next ゼロ ダーク サーティ
- Prev さくらの専用サーバー : iptables 設定。
- Next screen maxwin ウィンドウ数を制限する。