From a4877edb91a1f4b0394303857ea2dad2a583398b Mon Sep 17 00:00:00 2001 From: Anri Date: Sun, 14 Nov 2021 21:39:56 +0100 Subject: [PATCH] ssh command chown & chmod --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 689e752..2ae0fec 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ Mon guide à suivre lors d'une réinstallation d'Ubuntu ``` - Remettre les clés SSH dans le dossier `$HOME/.ssh` + ```bash + # To rechange to the correct permissions, you can run this command after re-uploading your ssh keys + sudo chown $USER:$USER $HOME/.ssh/* && sudo chmod u=r,g=,o= $HOME/.ssh/* && sudo chmod g=r,o=r $HOME/.ssh/*.pub && sudo chmod g=r,o=r $HOME/.ssh/config && sudo chmod g=r,o=r $HOME/.ssh/environment + ``` - Désactive le mot de passe SU si nécessaire ```bash