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
2019-04-08 19:37:59 +02:00
defaults change boolean to string 2019-04-08 19:37:59 +02:00
handlers become: yes 2019-03-04 17:21:55 +01:00
tasks Add ssh group variable 2019-03-27 15:16:55 +01:00
templates add option to enable password based auth 2019-04-08 19:34:58 +02:00
vars Arch support and use become: yes 2019-02-20 11:54:02 +01:00
README.md allow dynamic user configuration 2019-03-27 14:23:41 +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

have a look into defaults/main.yml foraditionally informations!

Files

  • sshd.conf:

References