Advertisement
Guest User

sshd_config

a guest
May 5th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. # $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
  2.  
  3. # This is the sshd server system-wide configuration file. See
  4. # sshd_config(5) for more information.
  5.  
  6. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
  7.  
  8. # The strategy used for options in the default sshd_config shipped with
  9. # OpenSSH is to specify options with their default value where
  10. # possible, but leave them commented. Uncommented options override the
  11. # default value.
  12.  
  13. Port 22
  14. #AddressFamily any
  15. #ListenAddress 0.0.0.0
  16. #ListenAddress ::
  17.  
  18. #HostKey /etc/ssh/ssh_host_rsa_key
  19. #HostKey /etc/ssh/ssh_host_ecdsa_key
  20. #HostKey /etc/ssh/ssh_host_ed25519_key
  21.  
  22. # Ciphers and keying
  23. #RekeyLimit default none
  24.  
  25. # Logging
  26. #SyslogFacility AUTH
  27. #LogLevel INFO
  28.  
  29. # Authentication:
  30.  
  31. #LoginGraceTime 2m
  32. PermitRootLogin no
  33. AllowUsers amministratore
  34. #StrictModes yes
  35. #MaxAuthTries 6
  36. #MaxSessions 10
  37.  
  38. PubkeyAuthentication yes
  39.  
  40. # Expect .ssh/authorized_keys2 to be disregarded by default in future.
  41. #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
  42.  
  43. #AuthorizedPrincipalsFile none
  44.  
  45. #AuthorizedKeysCommand none
  46. #AuthorizedKeysCommandUser nobody
  47.  
  48. # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
  49. HostbasedAuthentication yes
  50. RSAAuthentication yes
  51. # Change to yes if you don't trust ~/.ssh/known_hosts for
  52. # HostbasedAuthentication
  53. #IgnoreUserKnownHosts no
  54. # Don't read the user's ~/.rhosts and ~/.shosts files
  55. #IgnoreRhosts yes
  56.  
  57. # To disable tunneled clear text passwords, change to no here!
  58. #PasswordAuthentication yes
  59. #PermitEmptyPasswords no
  60.  
  61. # Change to yes to enable challenge-response passwords (beware issues with
  62. # some PAM modules and threads)
  63. ChallengeResponseAuthentication no
  64.  
  65. # Kerberos options
  66. #KerberosAuthentication no
  67. #KerberosOrLocalPasswd yes
  68. #KerberosTicketCleanup yes
  69. #KerberosGetAFSToken no
  70.  
  71. # GSSAPI options
  72. #GSSAPIAuthentication no
  73. #GSSAPICleanupCredentials yes
  74. #GSSAPIStrictAcceptorCheck yes
  75. #GSSAPIKeyExchange no
  76.  
  77. # Set this to 'yes' to enable PAM authentication, account processing,
  78. # and session processing. If this is enabled, PAM authentication will
  79. # be allowed through the ChallengeResponseAuthentication and
  80. # PasswordAuthentication. Depending on your PAM configuration,
  81. # PAM authentication via ChallengeResponseAuthentication may bypass
  82. # the setting of "PermitRootLogin without-password".
  83. # If you just want the PAM account and session checks to run without
  84. # PAM authentication, then enable this but set PasswordAuthentication
  85. # and ChallengeResponseAuthentication to 'no'.
  86. UsePAM no
  87.  
  88. #AllowAgentForwarding yes
  89. #AllowTcpForwarding yes
  90. #GatewayPorts no
  91. X11Forwarding yes
  92. #X11DisplayOffset 10
  93. #X11UseLocalhost yes
  94. #PermitTTY yes
  95. PrintMotd no
  96. #PrintLastLog yes
  97. #TCPKeepAlive yes
  98. #UseLogin no
  99. #PermitUserEnvironment no
  100. #Compression delayed
  101. #ClientAliveInterval 0
  102. #ClientAliveCountMax 3
  103. #UseDNS no
  104. #PidFile /var/run/sshd.pid
  105. #MaxStartups 10:30:100
  106. #PermitTunnel no
  107. #ChrootDirectory none
  108. #VersionAddendum none
  109.  
  110. # no default banner path
  111. #Banner none
  112.  
  113. # Allow client to pass locale environment variables
  114. AcceptEnv LANG LC_*
  115.  
  116. # override default of no subsystems
  117. Subsystem sftp /usr/lib/openssh/sftp-server
  118.  
  119. # Example of overriding settings on a per-user basis
  120. #Match User anoncvs
  121. # X11Forwarding no
  122. # AllowTcpForwarding no
  123. # PermitTTY no
  124. # ForceCommand cvs server
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement