Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. name "openssh-ubuntu"
  2. description "Sets up OpenSSH using my preferred generic settings on Ubuntu nodes"
  3. default_attributes(
  4. "openssh" => {
  5. "server" => {
  6. "port" => "22",
  7. "protocol" => "2",
  8. "address_family" => "any",
  9. "listen_address" => ["0.0.0.0", "::"],
  10. "challenge_response_authentication" => "no",
  11. "ciphers" => "aes256-ctr,aes256-gcm@openssh.com,aes192-ctr,aes128-ctr,aes128-gcm@openssh.com",
  12. "client_alive_interval" => "15",
  13. "client_alive_count_max" => "3",
  14. "compression" => "yes",
  15. "gateway_ports" => "no",
  16. "gssapi_authentication" => "no",
  17. "gssapi_clean_up_credentials" => "yes",
  18. "host_based_authentication" => "no",
  19. "ignore_rhosts" => "yes",
  20. "log_level" => "INFO",
  21. "login_grace_time" => "50s",
  22. "m_a_cs" => "hmac-sha2-256-etm@openssh.com,hmac-sha2-256,hmac-sha2-512-etm@openssh.com,hmac-sha2-512",
  23. "max_auth_tries" => "6",
  24. "max_startups" => "10",
  25. "password_authentication" => "no",
  26. "permit_empty_passwords" => "no",
  27. "permit_root_login" => "no",
  28. "permit_tunnel" => "no",
  29. "permit_user_environment" => "no",
  30. "print_lastlog" => "yes",
  31. "print_motd" => "no",
  32. "pubkey_authentication" => "yes",
  33. "rsa_authentication" => "yes",
  34. "strict_modes" => "yes",
  35. "syslog_facility" => "AUTHPRIV",
  36. "use_dns" => "no",
  37. "use_login" => "no",
  38. "use_p_a_m" => "yes",
  39. "use_privilege_separation" => "yes",
  40. "x11_forwarding" => "no"
  41. }
  42. }
  43. )
  44. run_list "recipe[openssh]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement