Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. # This is the sshd server system-wide configuration file. See
  2. # sshd_config(5) for more information.
  3.  
  4. # The strategy used for options in the default sshd_config shipped with
  5. # OpenSSH is to specify options with their default value where
  6. # possible, but leave them commented. Uncommented options override the
  7. # default value.
  8.  
  9. Port 22
  10. #AddressFamily any
  11. #ListenAddress 0.0.0.0
  12. #ListenAddress ::
  13.  
  14. #HostKey __PROGRAMDATA__/ssh/ssh_host_rsa_key
  15. #HostKey __PROGRAMDATA__/ssh/ssh_host_dsa_key
  16. #HostKey __PROGRAMDATA__/ssh/ssh_host_ecdsa_key
  17. #HostKey __PROGRAMDATA__/ssh/ssh_host_ed25519_key
  18.  
  19. # Ciphers and keying
  20. #RekeyLimit default none
  21.  
  22. # Logging
  23. SyslogFacility AUTH
  24. LogLevel INFO
  25.  
  26. # Authentication:
  27.  
  28. #LoginGraceTime 2m
  29. PermitRootLogin no
  30. #StrictModes yes
  31. #MaxAuthTries 3
  32. #MaxSessions 10
  33.  
  34. PubkeyAuthentication yes
  35.  
  36. # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
  37. # but this is overridden so installations will only check .ssh/authorized_keys
  38. AuthorizedKeysFile __USERPROFILE__/.ssh/authorized_keys
  39.  
  40. #AuthorizedPrincipalsFile none
  41.  
  42. # For this to work you will also need host keys in %programData%/ssh/ssh_known_hosts
  43. #HostbasedAuthentication no
  44. # Change to yes if you don't trust ~/.ssh/known_hosts for
  45. # HostbasedAuthentication
  46. #IgnoreUserKnownHosts no
  47. # Don't read the user's ~/.rhosts and ~/.shosts files
  48. #IgnoreRhosts yes
  49.  
  50. # To disable tunneled clear text passwords, change to no here!
  51. PasswordAuthentication no
  52. #PasswordAuthentication yes
  53. #PermitEmptyPasswords no
  54.  
  55. #AllowAgentForwarding yes
  56. #AllowTcpForwarding yes
  57. #GatewayPorts no
  58. #PermitTTY yes
  59. #PrintMotd yes
  60. PrintLastLog yes
  61. #TCPKeepAlive yes
  62. #UseLogin no
  63. #PermitUserEnvironment no
  64. #ClientAliveInterval 0
  65. #ClientAliveCountMax 3
  66. #UseDNS no
  67. #PidFile /var/run/sshd.pid
  68. #MaxStartups 10:30:100
  69. #PermitTunnel no
  70. #ChrootDirectory none
  71. #VersionAddendum none
  72.  
  73. # no default banner path
  74. #Banner none
  75.  
  76. # override default of no subsystems
  77. Subsystem sftp sftp-server.exe
  78.  
  79. # Example of overriding settings on a per-user basis
  80. #Match User anoncvs
  81. # AllowTcpForwarding no
  82. # PermitTTY no
  83. # ForceCommand cvs server
  84.  
  85. #Match Group administrators
  86. # AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys
  87.  
  88. Match User Me
  89. AuthorizedKeysFile __USERPROFILE__/.ssh/authorized_keys
  90.  
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement