Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
преди 10 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. sshd_config:
  2. Port: 22
  3. Protocol: 2
  4. HostKey:
  5. - /etc/ssh/ssh_host_rsa_key
  6. - /etc/ssh/ssh_host_dsa_key
  7. - /etc/ssh/ssh_host_ecdsa_key
  8. - /etc/ssh/ssh_host_ed25519_key
  9. UsePrivilegeSeparation: 'yes'
  10. KeyRegenerationInterval: 3600
  11. ServerKeyBits: 768
  12. SyslogFacility: AUTH
  13. LogLevel: INFO
  14. LoginGraceTime: 120
  15. PermitRootLogin: 'yes'
  16. PasswordAuthentication: 'no'
  17. StrictModes: 'yes'
  18. RSAAuthentication: 'yes'
  19. PubkeyAuthentication: 'yes'
  20. IgnoreRhosts: 'yes'
  21. RhostsRSAAuthentication: 'no'
  22. HostbasedAuthentication: 'no'
  23. PermitEmptyPasswords: 'no'
  24. ChallengeResponseAuthentication: 'no'
  25. AuthenticationMethods 'publickey,keyboard-interactive'
  26. X11Forwarding: 'yes'
  27. X11DisplayOffset: 10
  28. PrintMotd: 'no'
  29. PrintLastLog: 'yes'
  30. TCPKeepAlive: 'yes'
  31. AcceptEnv: "LANG LC_*"
  32. Subsystem: "sftp /usr/lib/openssh/sftp-server"
  33. UsePAM: 'yes'
  34. UseDNS: 'yes'
  35. AllowUsers: 'vader@10.0.0.1 maul@evil.com sidious luke'
  36. DenyUsers: 'yoda chewbaca@112.10.21.1'
  37. AllowGroups: 'wheel staff imperial'
  38. DenyGroups: 'rebel'
  39. Deny
  40. matches:
  41. sftp_chroot:
  42. type:
  43. Group: sftpusers
  44. options:
  45. ChrootDirectory: /sftp-chroot/%u
  46. X11Forwarding: no
  47. AllowTcpForwarding: no
  48. ForceCommand: internal-sftp
  49. openssh:
  50. auth:
  51. joe:
  52. - name: JOE_VALID_SSH_PUBLIC_KEY
  53. present: True
  54. enc: ssh-rsa
  55. comment: main key
  56. - name: JOE_NON_VALID_SSH_PUBLIC_KEY
  57. present: False
  58. enc: ssh-rsa
  59. comment: obsolete key - removed
  60. generate_dsa_keys: False
  61. provide_dsa_keys: False
  62. dsa:
  63. private_key: |
  64. -----BEGIN DSA PRIVATE KEY-----
  65. NOT_DEFINED
  66. -----END DSA PRIVATE KEY-----
  67. public_key: |
  68. ssh-dss NOT_DEFINED
  69. generate_ecdsa_keys: False
  70. provide_ecdsa_keys: False
  71. ecdsa:
  72. private_key: |
  73. -----BEGIN EC PRIVATE KEY-----
  74. NOT_DEFINED
  75. -----END EC PRIVATE KEY-----
  76. public_key: |
  77. ecdsa-sha2-nistp256 NOT_DEFINED
  78. generate_rsa_keys: False
  79. provide_rsa_keys: False
  80. rsa:
  81. private_key: |
  82. -----BEGIN RSA PRIVATE KEY-----
  83. NOT_DEFINED
  84. -----END RSA PRIVATE KEY-----
  85. public_key: |
  86. ssh-rsa NOT_DEFINED
  87. generate_ed25519_keys: False
  88. provide_ed25519_keys: False
  89. ed25519:
  90. private_key: |
  91. -----BEGIN OPENSSH PRIVATE KEY-----
  92. NOT_DEFINED
  93. -----END OPENSSH PRIVATE KEY-----
  94. public_key: |
  95. ssh-ed25519 NOT_DEFINED