Guest User

Untitled

a guest
Nov 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. # Package generated configuration file
  2. # See the sshd(8) manpage for details
  3.  
  4. # What ports, IPs and protocols we listen for
  5. Port 22
  6. # Use these options to restrict which interfaces/protocols sshd will bind to
  7. #ListenAddress ::
  8. #ListenAddress 0.0.0.0
  9. Protocol 2
  10. # HostKeys for protocol version 2
  11. HostKey /etc/ssh/ssh_host_rsa_key
  12. HostKey /etc/ssh/ssh_host_dsa_key
  13. #Privilege Separation is turned on for security
  14. UsePrivilegeSeparation yes
  15.  
  16. # Lifetime and size of ephemeral version 1 server key
  17. KeyRegenerationInterval 3600
  18. ServerKeyBits 768
  19.  
  20. # Logging
  21. SyslogFacility AUTH
  22. LogLevel INFO
  23.  
  24. # Authentication:
  25. LoginGraceTime 120
  26. PermitRootLogin without-password # rootはパスワードログインはできない。
  27. StrictModes yes
  28.  
  29. RSAAuthentication yes
  30. PubkeyAuthentication yes
  31. #AuthorizedKeysFile %h/.ssh/authorized_keys
  32. AuthorizedKeysFile /etc/ssh/keys/%u # お勧め設定。バックアップ関係無しにお勧めです。
  33.  
  34. # Don't read the user's ~/.rhosts and ~/.shosts files
  35. IgnoreRhosts yes
  36. # For this to work you will also need host keys in /etc/ssh_known_hosts
  37. RhostsRSAAuthentication no
  38. # similar for protocol version 2
  39. HostbasedAuthentication no
  40. # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
  41. #IgnoreUserKnownHosts yes
  42.  
  43. # To enable empty passwords, change to yes (NOT RECOMMENDED)
  44. PermitEmptyPasswords no
  45.  
  46. # Change to yes to enable challenge-response passwords (beware issues with
  47. # some PAM modules and threads)
  48. ChallengeResponseAuthentication no # PAM関係。
  49.  
  50. # Change to no to disable tunnelled clear text passwords
  51. PasswordAuthentication no # パスワード認証は許可しない。
  52.  
  53. X11Forwarding no
  54. X11DisplayOffset 10
  55. PrintMotd no
  56. PrintLastLog yes
  57. TCPKeepAlive yes
  58. #UseLogin no
  59.  
  60. #MaxStartups 10:30:60
  61. #Banner /etc/issue.net
  62.  
  63. # Allow client to pass locale environment variables
  64. AcceptEnv LANG LC_*
  65.  
  66. Subsystem sftp /usr/lib/openssh/sftp-server
  67.  
  68. UsePAM no # yesだとパスワード認証できてしまう。
Add Comment
Please, Sign In to add comment