blob: bed809af5e1ea43d832b44b6836377b68a52131e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
OpenSSH hardened configuration
==============================
Purpose
-------
This repository contains an hardened version of the default OpenSSH client and server configuration, disabling broken ciphers and unsafe authentication methods.
Installation
------------
- `groupadd ssh-user` and `usermod -a -G ssh-user <username>` for each user allowed to use SSH.
- Deploy user public keys before continuing
- Clone this repo into `/etc/ssh/`
- Regenerate `ssh_host_rsa_key{,.pub}` of length 4096 if lower (`ssh-keygen -t rsa -b 4096 -f ssh_host_rsa_key < /dev/null`)
### Debian specific
- Comment unsupported parameter `KexDHMin 4096` in `ssh{,d}_config`
- `ln -s /usr/lib/openssh /usr/lib/ssh`
References
----------
- [Secure Secure Shell](https://stribika.github.io/2015/01/04/secure-secure-shell.html)
|