Guest User

Untitled

a guest
Jul 17th, 2018
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. Port 22
  2. Protocol 2
  3. HostKey /etc/ssh/ssh_host_rsa_key
  4.  
  5. AuthorizedKeysFile /etc/ssh/authorized_keys/%u
  6.  
  7. AllowGroups ssh
  8.  
  9. SyslogFacility AUTH
  10. LogLevel VERBOSE
  11. LoginGraceTime 120
  12. StrictModes yes
  13. IgnoreRhosts yes
  14.  
  15. UseDNS no
  16.  
  17. HostbasedAuthentication no
  18. PermitRootLogin no
  19. PermitEmptyPasswords no
  20. X11Forwarding no
  21. X11DisplayOffset 10
  22. ChallengeResponseAuthentication no
  23. KbdInteractiveAuthentication no
  24. GSSAPIAuthentication no
  25. KerberosAuthentication no
  26. PrintMotd no
  27. PrintLastLog yes
  28. TCPKeepAlive yes
  29. AcceptEnv LANG LC_*
  30. Subsystem sftp internal-sftp
  31. UsePAM yes
  32.  
  33. PubkeyAuthentication no
  34. PasswordAuthentication no
  35.  
  36. Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
  37. KexAlgorithms [email protected],ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
  38.  
  39. UsePrivilegeSeparation sandbox
  40.  
  41.  
  42.  
  43. # ACL here
  44.  
  45.  
  46.  
  47.  
  48. #SFTP-only group creation, cause, don't want this in the user-config!
  49. Match Group sftponly
  50. ChrootDirectory %h
  51. ForceCommand internal-sftp
  52. AllowTcpForwarding no
  53. PermitTunnel no
  54. X11Forwarding no
  55.  
  56. #RSSH chrooting. Which provides a minimal shell for sftp, rsync, etc.
  57. Match Group rsshonly
  58. ChrootDirectory %h
  59. X11Forwarding no
  60. PermitTunnel no
  61. AllowTcpForwarding no
  62. X11Forwarding no
Advertisement
Add Comment
Please, Sign In to add comment