1. #Subsystem sftp /usr/lib/openssh/sftp-server
  2. # Set this to 'yes' to enable PAM authentication, account processing,
  3. # and session processing. If this is enabled, PAM authentication will
  4. # be allowed through the ChallengeResponseAuthentication and
  5. # PasswordAuthentication. Depending on your PAM configuration,
  6. # PAM authentication via ChallengeResponseAuthentication may bypass
  7. # the setting of "PermitRootLogin without-password".
  8. # If you just want the PAM account and session checks to run without
  9. # PAM authentication, then enable this but set PasswordAuthentication
  10. # and ChallengeResponseAuthentication to 'no'.
  11. UsePAM yes
  12. Subsystem sftp internal-sftp
  13. Match Group sftponly
  14. ChrootDirectory %h
  15. ForceCommand internal-sftp
  16. AllowTcpForwarding no

goto line:
Compare with:
text copy window edit this code post new code