This role installs and configures OpenSSH client and server on Ubuntu. The default configuration is based on the Secure Secure Shell blog post by stribika.
openssh_client_pkg_name
- Name of the OpenSSH client packageopenssh_client_pkg_state
- OpenSSH client package stateopenssh_client_config_enable_github
- GitHub sometimes needs different ciphersopenssh_client_config_kexalgorithms
- Key exchange algorithms this client supportsopenssh_client_config_passwordauthentication
- Whether to enable password authenticationopenssh_client_config_pubkeyauthentication
- Whether to enable public key authenticationopenssh_client_config_hostkeyalgorithms
- Host key algorithms for connections from this hostopenssh_client_config_ciphers
- Supported ciphers for client connections from this hostopenssh_client_config_macs
- Message authentication codes for client connections from this hostopenssh_server_pkg_name
- Name of the OpenSSH server packageopenssh_server_pkg_state
- OpenSSH server package stateopenssh_server_config_usergroup
- Group name of user group permitted to access this hostopenssh_server_config_kexalgorithms
- Key exchange algorithms this server supportsopenssh_server_config_passwordauthentication
- Enable or disable password authentication to this serveropenssh_server_config_pubkeyauthentication
- Enable or disable public key authentication to this serveropenssh_server_config_ciphers
- Supported ciphersopenssh_server_config_macs
- Supported message authentication codesopenssh_server_config_port
- Server listen portopenssh_server_config_listenaddress
- Server listen addressesopenssh_server_config_loglevel
- Server log levelopenssh_server_config_permitrootlogin
- Enable or disable logins from the root useropenssh_server_config_strictmodes
- Enable or disable strict file mode checkingopenssh_server_config_challengeresponseauthentication
- Enable or disable challenge response authenticationopenssh_server_config_usepam
- Enable or disable PAMopenssh_server_config_x11forwarding
- Enable or disable X11 forwardingopenssh_server_config_maxauthtries
- Maximum number of authentication attempts per connectionopenssh_server_config_clientaliveinterval
- Interval in seconds after which a message is sent to the client to see if its aliveopenssh_server_config_clientalivecountmax
- Number of client alive messages that will be sentopenssh_server_regenerate_host_keys
- Whether to regenerate the distro-provided default host keysopenssh_server_service_name
- Name of the OpenSSH server daemonopenssh_server_service_enabled
- Enable or disable OpenSSH server on bootopenssh_server_service_state
- OpenSSH server daemon state
none
- hosts: servers
roles:
- openssh
MIT
Role created by Ben Nugent.