Skip to content

Ansible role to install & maintain the OpenSSH Daemon

License

Notifications You must be signed in to change notification settings

zerwes/ansible-sshd

 
 

Repository files navigation

ansible-sshd

Build Status Ansible Galaxy

Role to install & maintain the OpenSSH Daemon

Role Variables

The playbook requires no special configuration, but offers a bunch of options.

Defaults:

# Set `sshd_port` to a list of ports to listen on.
sshd_port:
  - 22

sshd_host_keys:
  - rsa
  - ecdsa
  - ed25519

# Set `sshd_listen_address` to a list of addresses. Defaults to all
# IPv4+IPv6 addresses if unset.
#sshd_listen_address: []
sshd_syslog_facility: AUTH
sshd_log_level: INFO
sshd_use_privilege_seperation: "yes"
sshd_login_grace_time: 120
sshd_permit_root_login: "no"
sshd_strict_modes: "yes"
sshd_pubkey_authentication: "yes"
sshd_authorized_keys_file: "%h/.ssh/authorized_keys"
sshd_password_authentication: "no"
sshd_allow_users: []
sshd_allow_groups: []
sshd_ignore_rhosts: "yes"
sshd_hostbased_authentication: "no"
sshd_permit_empty_passwords: "no"
sshd_challenge_response_authentication: "no"
sshd_x11_forwarding: "no"
sshd_x11_display_offset: 10
sshd_print_motd: "no"
sshd_print_last_log: "yes"
sshd_tcp_keep_alive: "yes"
sshd_max_startups: "10:30:60"
sshd_client_alive_interval: 3600
sshd_client_alive_count_max: 0
sshd_use_pam: "yes"
sshd_use_dns: "no"
sshd_sftp_chroot: "no"
sshd_sftp_chroot_group: sftponly

Download

Download latest release with ansible-galaxy

ansible-galaxy install systemli.sshd

Example Playbook

- hosts: servers
  roles:
     - { role: systemli.sshd }

Testing & Development

For developing and testing the role we use Travis CI and Vagrant. On the local environment you can easily test the role with

vagrant up trusty
# other available releases are precise, wheezy and jessie

License

GPLv3

Author Information

https://www.systemli.org

About

Ansible role to install & maintain the OpenSSH Daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%