Saltstack Official OpenSSH Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pillar.example 2.5KB

vor 10 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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-valid-ssh-key-desktop:
  52. - user: joe
  53. present: True
  54. enc: ssh-rsa
  55. comment: main key - desktop
  56. joe-valid-ssh-key-notebook:
  57. - user: joe
  58. present: True
  59. enc: ssh-rsa
  60. comment: main key - notebook
  61. joe-non-valid-ssh-key:
  62. - user: joe
  63. present: False
  64. enc: ssh-rsa
  65. comment: obsolete key - removed
  66. generate_dsa_keys: False
  67. provide_dsa_keys: False
  68. dsa:
  69. private_key: |
  70. -----BEGIN DSA PRIVATE KEY-----
  71. NOT_DEFINED
  72. -----END DSA PRIVATE KEY-----
  73. public_key: |
  74. ssh-dss NOT_DEFINED
  75. generate_ecdsa_keys: False
  76. provide_ecdsa_keys: False
  77. ecdsa:
  78. private_key: |
  79. -----BEGIN EC PRIVATE KEY-----
  80. NOT_DEFINED
  81. -----END EC PRIVATE KEY-----
  82. public_key: |
  83. ecdsa-sha2-nistp256 NOT_DEFINED
  84. generate_rsa_keys: False
  85. provide_rsa_keys: False
  86. rsa:
  87. private_key: |
  88. -----BEGIN RSA PRIVATE KEY-----
  89. NOT_DEFINED
  90. -----END RSA PRIVATE KEY-----
  91. public_key: |
  92. ssh-rsa NOT_DEFINED
  93. generate_ed25519_keys: False
  94. provide_ed25519_keys: False
  95. ed25519:
  96. private_key: |
  97. -----BEGIN OPENSSH PRIVATE KEY-----
  98. NOT_DEFINED
  99. -----END OPENSSH PRIVATE KEY-----
  100. public_key: |
  101. ssh-ed25519 NOT_DEFINED