2018-03-07 03:28:23 +01: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
|
|
|
|
```
|
2018-03-07 03:28:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
Variables
|
|
|
|
---------
|
|
|
|
|
2018-08-26 17:25:12 +02:00
|
|
|
* `restrict_allow_users`: enable the `AllowUsers` and `AllowGroups` options.
|
|
|
|
|
2018-11-12 21:37:43 +01:00
|
|
|
+ `users`: which user is allowed to login.
|
|
|
|
|
|
|
|
Example config:
|
|
|
|
```bash
|
|
|
|
users:
|
|
|
|
l3d:
|
|
|
|
- l3d
|
|
|
|
ottojo:
|
|
|
|
- ottojo@uni
|
|
|
|
- ottojo@home
|
|
|
|
```
|
2018-03-07 03:28:23 +01:00
|
|
|
|
2018-03-16 04:54:02 +01:00
|
|
|
Files
|
|
|
|
-----
|
|
|
|
|
|
|
|
* `sshd.conf`:
|
|
|
|
|
|
|
|
|
2018-03-07 03:28:23 +01:00
|
|
|
References
|
|
|
|
----------
|
|
|
|
|
|
|
|
* [Secure Secure Shell](https://stribika.github.io/2015/01/04/secure-secure-shell.html)
|