Craftpick

Sécuriser SSH

Clés SSH, durcissement sshd, et bonnes pratiques.

Créer un utilisateur (recommandé)

adduser craftpick
usermod -aG sudo craftpick

Activer les clés SSH

mkdir -p ~/.ssh
chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

Durcir sshd_config

nano /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no

Redémarrer SSH

systemctl restart ssh
Retour