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