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.

96 lines
2.2KB

  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. matches:
  36. sftp_chroot:
  37. type:
  38. Group: sftpusers
  39. options:
  40. ChrootDirectory: /sftp-chroot/%u
  41. X11Forwarding: no
  42. AllowTcpForwarding: no
  43. ForceCommand: internal-sftp
  44. openssh:
  45. auth:
  46. joe:
  47. - name: JOE_VALID_SSH_PUBLIC_KEY
  48. present: True
  49. enc: ssh-rsa
  50. comment: main key
  51. - name: JOE_NON_VALID_SSH_PUBLIC_KEY
  52. present: False
  53. enc: ssh-rsa
  54. comment: obsolete key - removed
  55. generate_dsa_keys: False
  56. provide_dsa_keys: False
  57. dsa:
  58. private_key: |
  59. -----BEGIN DSA PRIVATE KEY-----
  60. NOT_DEFINED
  61. -----END DSA PRIVATE KEY-----
  62. public_key: |
  63. ssh-dss NOT_DEFINED
  64. generate_ecdsa_keys: False
  65. provide_ecdsa_keys: False
  66. ecdsa:
  67. private_key: |
  68. -----BEGIN EC PRIVATE KEY-----
  69. NOT_DEFINED
  70. -----END EC PRIVATE KEY-----
  71. public_key: |
  72. ecdsa-sha2-nistp256 NOT_DEFINED
  73. generate_rsa_keys: False
  74. provide_rsa_keys: False
  75. rsa:
  76. private_key: |
  77. -----BEGIN RSA PRIVATE KEY-----
  78. NOT_DEFINED
  79. -----END RSA PRIVATE KEY-----
  80. public_key: |
  81. ssh-rsa NOT_DEFINED
  82. generate_ed25519_keys: False
  83. provide_ed25519_keys: False
  84. ed25519:
  85. private_key: |
  86. -----BEGIN OPENSSH PRIVATE KEY-----
  87. NOT_DEFINED
  88. -----END OPENSSH PRIVATE KEY-----
  89. public_key: |
  90. ssh-ed25519 NOT_DEFINED