aboutsummaryrefslogtreecommitdiff

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

  • Deploy user public keys before continuing
  • groupadd ssh-user and usermod -a -G ssh-user <username> for each user allowed to use SSH.
  • 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)

References