Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7af1066baf |
13
Readme.md
13
Readme.md
@@ -2,20 +2,9 @@
|
|||||||
|
|
||||||
Créer le compte utilisateur thomas :
|
Créer le compte utilisateur thomas :
|
||||||
- répertoire personnel /home/thomas
|
- répertoire personnel /home/thomas
|
||||||
|
- groupe sudo
|
||||||
- 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