This commit is contained in:
2024-09-27 12:00:38 +02:00
parent 3f656e2b5d
commit cf7ee49444

View File

@@ -4,6 +4,18 @@ Créer le compte utilisateur thomas :
- répertoire personnel /home/thomas
- shell: /bin/bash
```bash
useradd -m -d /home/thomas thomas
passwd thomas
```
## Gestion des clés
Faites en sorte que je puisse me connecter avec ce compte, en utilisant la clé https://infra.opendoor.fr/id_rsa.pub
```bash
install -m 700 -o thomas -g thomas -d /home/thomas/.ssh
curl https://infra.opendoor.fr/id_rsa.pub >> /home/thomas/.ssh/authorized_keys
chown thomas !$
chmod 600 !$
```