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 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. openssh:
  49. auth:
  50. joe-valid-ssh-key-desktop:
  51. - user: joe
  52. present: True
  53. enc: ssh-rsa
  54. comment: main key - desktop
  55. joe-valid-ssh-key-notebook:
  56. - user: joe
  57. present: True
  58. enc: ssh-rsa
  59. comment: main key - notebook
  60. joe-non-valid-ssh-key:
  61. - user: joe
  62. present: False
  63. enc: ssh-rsa
  64. comment: obsolete key - removed
  65. generate_dsa_keys: False
  66. provide_dsa_keys: False
  67. dsa:
  68. private_key: |
  69. -----BEGIN DSA PRIVATE KEY-----
  70. NOT_DEFINED
  71. -----END DSA PRIVATE KEY-----
  72. public_key: |
  73. ssh-dss NOT_DEFINED
  74. generate_ecdsa_keys: False
  75. provide_ecdsa_keys: False
  76. ecdsa:
  77. private_key: |
  78. -----BEGIN EC PRIVATE KEY-----
  79. NOT_DEFINED
  80. -----END EC PRIVATE KEY-----
  81. public_key: |
  82. ecdsa-sha2-nistp256 NOT_DEFINED
  83. generate_rsa_keys: False
  84. provide_rsa_keys: False
  85. rsa:
  86. private_key: |
  87. -----BEGIN RSA PRIVATE KEY-----
  88. NOT_DEFINED
  89. -----END RSA PRIVATE KEY-----
  90. public_key: |
  91. ssh-rsa NOT_DEFINED
  92. generate_ed25519_keys: False
  93. provide_ed25519_keys: False
  94. ed25519:
  95. private_key: |
  96. -----BEGIN OPENSSH PRIVATE KEY-----
  97. NOT_DEFINED
  98. -----END OPENSSH PRIVATE KEY-----
  99. public_key: |
  100. ssh-ed25519 NOT_DEFINED
  101. known_hosts:
  102. # The next 2 settings restrict the set of minions that will be added in
  103. # the generated ssh_known_hosts files (the default is to match all minions)
  104. target: '*'
  105. expr_form: 'glob'
  106. # Name of mining functions used to gather public keys and hostnames
  107. # (the default values are shown here)
  108. mine_keys_function: public_ssh_host_keys
  109. mine_hostname_function: public_ssh_hostname
  110. # List of DNS entries also pointing to our managed machines and that we want
  111. # to inject in our generated ssh_known_hosts file
  112. aliases:
  113. - cname-to-minion.example.org
  114. - alias.example.org
  115. # Required for openssh.known_hosts
  116. mine_functions:
  117. public_ssh_host_keys:
  118. mine_function: cmd.run
  119. cmd: cat /etc/ssh/ssh_host_*_key.pub
  120. public_ssh_hostname:
  121. mine_function: grains.get
  122. key: id