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.

pillar.example 6.4KB

10 vuotta sitten
10 vuotta sitten
10 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. matches:
  40. sftp_chroot:
  41. type:
  42. Group: sftpusers
  43. options:
  44. ChrootDirectory: /sftp-chroot/%u
  45. X11Forwarding: no
  46. AllowTcpForwarding: no
  47. ForceCommand: internal-sftp
  48. # Check `man sshd_config` for supported KexAlgorithms, Ciphers and MACs first.
  49. KexAlgorithms: 'diffie-hellman-group14-sha1,diffie-hellman-group1-sha1'
  50. Ciphers: 'aes128-ctr,aes256-ctr'
  51. MACs: 'hmac-sha1'
  52. ssh_config:
  53. StrictHostKeyChecking: no
  54. ForwardAgent: no
  55. ForwardX11: no
  56. RhostsRSAAuthentication: no
  57. RSAAuthentication: yes
  58. PasswordAuthentication: yes
  59. HostbasedAuthentication: no
  60. GSSAPIAuthentication: no
  61. GSSAPIDelegateCredentials: no
  62. BatchMode: 'yes'
  63. CheckHostIP: 'yes'
  64. AddressFamily: 'any'
  65. ConnectTimeout: 0
  66. IdentityFile: '~/.ssh/id_rsa'
  67. Port: 22
  68. Protocol: 2
  69. Cipher: '3des'
  70. Tunnel: 'no'
  71. TunnelDevice: 'any:any'
  72. PermitLocalCommand: 'no'
  73. VisualHostKey: 'no'
  74. openssh:
  75. auth:
  76. joe-valid-ssh-key-desktop:
  77. - user: joe
  78. present: True
  79. enc: ssh-rsa
  80. comment: main key - desktop
  81. joe-valid-ssh-key-notebook:
  82. - user: joe
  83. present: True
  84. enc: ssh-rsa
  85. comment: main key - notebook
  86. joe-non-valid-ssh-key:
  87. - user: joe
  88. present: False
  89. enc: ssh-rsa
  90. comment: obsolete key - removed
  91. generate_dsa_keys: False
  92. absent_dsa_keys: False
  93. provide_dsa_keys: False
  94. dsa:
  95. private_key: |
  96. -----BEGIN DSA PRIVATE KEY-----
  97. NOT_DEFINED
  98. -----END DSA PRIVATE KEY-----
  99. public_key: |
  100. ssh-dss NOT_DEFINED
  101. generate_ecdsa_keys: False
  102. absent_ecdsa_keys: False
  103. provide_ecdsa_keys: False
  104. ecdsa:
  105. private_key: |
  106. -----BEGIN EC PRIVATE KEY-----
  107. NOT_DEFINED
  108. -----END EC PRIVATE KEY-----
  109. public_key: |
  110. ecdsa-sha2-nistp256 NOT_DEFINED
  111. generate_rsa_keys: False
  112. generate_rsa_size: 4096
  113. absent_rsa_keys: False
  114. provide_rsa_keys: False
  115. rsa:
  116. private_key: |
  117. -----BEGIN RSA PRIVATE KEY-----
  118. NOT_DEFINED
  119. -----END RSA PRIVATE KEY-----
  120. public_key: |
  121. ssh-rsa NOT_DEFINED
  122. generate_ed25519_keys: False
  123. absent_ed25519_keys: False
  124. provide_ed25519_keys: False
  125. ed25519:
  126. private_key: |
  127. -----BEGIN OPENSSH PRIVATE KEY-----
  128. NOT_DEFINED
  129. -----END OPENSSH PRIVATE KEY-----
  130. public_key: |
  131. ssh-ed25519 NOT_DEFINED
  132. known_hosts:
  133. # The next 2 settings restrict the set of minions that will be added in
  134. # the generated ssh_known_hosts files (the default is to match all minions)
  135. target: '*'
  136. expr_form: 'glob'
  137. # Name of mining functions used to gather public keys and hostnames
  138. # (the default values are shown here)
  139. mine_keys_function: public_ssh_host_keys
  140. mine_hostname_function: public_ssh_hostname
  141. # List of DNS entries also pointing to our managed machines and that we want
  142. # to inject in our generated ssh_known_hosts file
  143. aliases:
  144. - cname-to-minion.example.org
  145. - alias.example.org
  146. # specify DH parameters (see /etc/ssh/moduli)
  147. moduli: |
  148. # Time Type Tests Tries Size Generator Modulus
  149. 20120821045639 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C604293680B09D63
  150. 20120821045830 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C6042936814C2FFB
  151. 20120821050046 2 6 100 2047 2 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368214FC53
  152. 20120821050054 2 6 100 2047 5 DD2047CBDBB6F8E919BC63DE885B34D0FD6E3DB2887D8B46FE249886ACED6B46DFCD5553168185FD376122171CD8927E60120FA8D01F01D03E58281FEA9A1ABE97631C828E41815F34FDCDF787419FE13A3137649AA93D2584230DF5F24B5C00C88B7D7DE4367693428C730376F218A53E853B0851BAB7C53C15DA7839CBE1285DB63F6FA45C1BB59FE1C5BB918F0F8459D7EF60ACFF5C0FA0F3FCAD1C5F4CE4416D4F4B36B05CDCEBE4FB879E95847EFBC6449CD190248843BC7EDB145FBFC4EDBB1A3C959298F08F3BA2CFBE231BBE204BE6F906209D28BD4820AB3E7BE96C26AE8A809ADD8D1A5A0B008E9570FA4C4697E116B8119892C60429368218E83F
  153. # Required for openssh.known_hosts
  154. mine_functions:
  155. public_ssh_host_keys:
  156. mine_function: cmd.run
  157. cmd: cat /etc/ssh/ssh_host_*_key.pub
  158. python_shell: True
  159. public_ssh_hostname:
  160. mine_function: grains.get
  161. key: id