diff --git a/pages/01.administrate/06.overview/12.security/security.fr.md b/pages/01.administrate/06.overview/12.security/security.fr.md index 2ac915ae..1e572001 100644 --- a/pages/01.administrate/06.overview/12.security/security.fr.md +++ b/pages/01.administrate/06.overview/12.security/security.fr.md @@ -50,17 +50,10 @@ ssh-copy-id -i ~/.ssh/id_rsa.pub Entrez le mot de passe d’administration et votre clé publique devrait être copiée sur votre serveur. -**Sur votre serveur**, éditez le fichier de configuration SSH, pour désactiver l’authentification par mot de passe. -```bash -nano /etc/ssh/sshd_config +**Sur votre serveur**, l'édition du fichier de configuration SSH pour désactiver l’authentification par mot de passe est gérée par un paramètre système : -# Modifiez ou ajoutez la ligne suivante -PasswordAuthentication no -``` - -Sauvegardez et relancez le démon SSH. ```bash -systemctl restart ssh +sudo yunohost settings set security.ssh.password_authentication -v no ``` --- diff --git a/pages/01.administrate/06.overview/12.security/security.md b/pages/01.administrate/06.overview/12.security/security.md index e2cabe67..1bb61317 100644 --- a/pages/01.administrate/06.overview/12.security/security.md +++ b/pages/01.administrate/06.overview/12.security/security.md @@ -46,18 +46,10 @@ ssh-copy-id -i ~/.ssh/id_rsa.pub Type your admnistration password and your key will be copied on your server. -**On your server**, edit the SSH configuration file, in order to deactivate the password authentication. +**On your server**, the edition of the SSH configuration file in order to deactivate the password authentication is handled by a system setting: ```bash -nano /etc/ssh/sshd_config - -# Modify or add the following line -PasswordAuthentication no -``` - -Save and restart the SSH daemon. -```bash -systemctl restart ssh +sudo yunohost settings set security.ssh.password_authentication -v no ``` ---