Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d7d73c02bc | |||
| cf7ee49444 |
12
Readme.md
12
Readme.md
@@ -4,6 +4,18 @@ Créer le compte utilisateur thomas :
|
|||||||
- répertoire personnel /home/thomas
|
- répertoire personnel /home/thomas
|
||||||
- shell: /bin/bash
|
- shell: /bin/bash
|
||||||
|
|
||||||
|
```bash
|
||||||
|
useradd -m -d /home/thomas -G sudo thomas
|
||||||
|
passwd thomas
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Gestion des clés
|
## 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
|
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 !$
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user