Skip to content

Instantly share code, notes, and snippets.

@YuzuRyo61
Last active October 13, 2017 02:54
Show Gist options
  • Save YuzuRyo61/a3f8ceb9c4dcbb0db24d9f2c98852c46 to your computer and use it in GitHub Desktop.
Save YuzuRyo61/a3f8ceb9c4dcbb0db24d9f2c98852c46 to your computer and use it in GitHub Desktop.
sftpのみ使用するユーザーで鍵認証を使用する ref: http://qiita.com/YuzuRyo61/items/c57d9830c29709b6660b
Match group sftponly
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
Match group sftponly
ChrootDirectory /home/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment