Last active
October 13, 2017 02:54
-
-
Save YuzuRyo61/a3f8ceb9c4dcbb0db24d9f2c98852c46 to your computer and use it in GitHub Desktop.
sftpのみ使用するユーザーで鍵認証を使用する ref: http://qiita.com/YuzuRyo61/items/c57d9830c29709b6660b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Match group sftponly | |
ChrootDirectory /home/%u | |
X11Forwarding no | |
AllowTcpForwarding no | |
ForceCommand internal-sftp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AuthorizedKeysFile /home/%u/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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