From d7e9d860117c87e320bdcac2769b0bc3fb715369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Benitez?= Date: Sun, 4 Aug 2024 17:17:03 -0300 Subject: [PATCH] Update create-user.md --- create-user.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/create-user.md b/create-user.md index ad0a122..ffb16c7 100644 --- a/create-user.md +++ b/create-user.md @@ -21,10 +21,12 @@ If you need the new user to have administrative privileges, add the user to the - Switch to the New User: `su - newusername` - Create SSH Directory and Authorized Keys: - `mkdir -p ~/.ssh + ```bash + mkdir -p ~/.ssh chmod 700 ~/.ssh touch ~/.ssh/authorized_keys - chmod 600 ~/.ssh/authorized_keys` + chmod 600 ~/.ssh/authorized_keys + ``` - Add Your Public Key to authorized_keys: - Open authorized_keys in an editor: `vim ~/.ssh/authorized_keys`