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_sshd/README.md

53 lines
1.6 KiB
Markdown
Raw Normal View History

2019-05-15 12:37:25 +02:00
OpenSSH Server
==============
Ansible role to configure the OpenSSH `ssh` server.
2018-11-12 21:37:43 +01:00
Use Eliptic cureve cryptografie for your ssh keys e.g.:
```bash
ssh-keygen -t ed25519
```
2019-11-14 10:36:18 +01:00
combinations
---------------
It is highly recomended to use this role together with a role to manage users and to manage the sshd configuration.<br/>
The following roles are tested in combination and work well - at least for the user [DO1JLR](https://github.com/do1jlr):
- [github.com/chaos-bodensee/role-manage_users](https://github.com/chaos-bodensee/role-manage_users.git)
- [github.com/chaos-bodensee/role-ssh_authorized_keys](https://github.com/chaos-bodensee/role-ssh_authorized_keys.git)
- [github.com/chaos-bodensee/role_sshd](https://github.com/chaos-bodensee/role_sshd.git) *(this one)*
2019-05-15 12:37:25 +02:00
Some Variables explained
------------------------------
**Remember:** Have a look into ``defaults/main.yml`` for all possible variables.
2019-05-15 12:37:25 +02:00
### Important part:
Define the users (and optional their ssh keys) for the ssh config template:
2018-11-12 21:37:43 +01:00
```bash
users:
l3d:
- l3d
ottojo:
- ottojo@uni
- ottojo@home
```
2019-05-15 12:37:25 +02:00
-> This means l3d and ottojo are able to login.
2019-05-15 12:37:25 +02:00
Files
-----
* `sshd.conf`:
2019-05-15 12:37:25 +02:00
References
----------
* [Secure Secure Shell](https://stribika.github.io/2015/01/04/secure-secure-shell.html)
2019-05-15 12:37:25 +02:00
Don't forget:
--------------
+ This role will not deploy or touch any ssh public keys. There are other roles to do that.
+ Be carefull if you don't have a eliptic curve ed25519 key. ``only_allow_ed25519: true`` is the default option.
* If you really have to deal with RSA Keys or simmilar, you should think about a backup ed25519 ssh key. Better a backup than beeing locked out!