1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sshd.git synced 2024-08-16 11:59:49 +02:00
Ansible role to configure and secure sshd and optional add a whitelist for users, groups and ssh keys.
Find a file
2018-11-12 21:37:43 +01:00
defaults Optionally disable Allow[Users,Groups] options 2018-08-26 17:25:12 +02:00
handlers Simple and secure openssh server configuration 2018-03-07 03:37:10 +01:00
tasks Automatically compose allowed users and groups lists 2018-03-16 04:54:02 +01:00
templates Optionally disable Allow[Users,Groups] options 2018-08-26 17:25:12 +02:00
README.md Update README 2018-11-12 21:37:43 +01:00

OpenSSH Server

Ansible role to configure the OpenSSH ssh server. Use Eliptic cureve cryptografie for your ssh keys e.g.:

ssh-keygen -t ed25519

Variables

  • restrict_allow_users: enable the AllowUsers and AllowGroups options.
  • users: which user is allowed to login.

Example config:

users:
  l3d:
    - l3d
  ottojo:
   - ottojo@uni
   - ottojo@home

Files

  • sshd.conf:

References