% Sauvegarde Yunohost

Voir proxy-jump.md




```bash
sudo yunohost user create backupmanager
```

Résultat

```
Full name: Backup Manager
Password: ***
Confirm password: *** 
Available domains:
- 13ft.aezi.fr
- cloud.aezi.fr
- excalidraw.aezi.fr
- joplin.aezi.fr
- notes.aezi.fr
- nu.aezi.fr
- wallabag.aezi.fr
Domain to use for the user's email address (default: nu.aezi.fr):
Info: The user 'backupmanager' will be added to the group 'all_users'
Warning: ./50-wallabag2: line 20: ynh_exec_as_app: command not found
Success! User created
fullname: Backup Manager
mail: backupmanager@nu.aezi.fr
username: backupmanager
```


## Ajout groupe SSH

[301 Moved Permanently](https://doc.yunohost.org/fr/admin/command_line)

```
sudo yunohost user permission add ssh backupmanager
sudo yunohost user permission remove ssh backupmanager
sudo yunohost user ssh add-key backupmanager "<clef publique>"
```


## DANGER: sécurité à vérifier

```bash
sudo setfacl -m u:backupmanager:rX /home/yunohost.*
sudo setfacl -d -m u:backupmanager:rX /home/yunohost.*
```




## Références

* [How to correctly proxy jump with SSH - Stack Overflow](https://stackoverflow.com/questions/76080637/how-to-correctly-proxy-jump-with-ssh)
* [set up a ssh tunnel only user for ssh proxy jump](https://gist.github.com/smoser/3e9430c51e23e0c0d16c359a2ca668ae)
* [🛠️ SSH et la ligne de commande | Yunohost](https://doc.yunohost.org/fr/admin/command_line)
* [Sécurité | Yunohost](https://doc.yunohost.org/fr/admin/tutorials/security/)
* [Add a GNU/Linux standard user to ssh.main - Discuss / Advanced use case - YunoHost Forum](https://forum.yunohost.org/t/add-a-gnu-linux-standard-user-to-ssh-main/35604)
* [Yunohost setup SSH key access only for user account · 🇬🇧 Andrea Bortolotti | Bortox 🇪🇺](https://bortox.it/en/article/yunohost-ssh-allow-user-only/)
* [yunohost-Sauvegarder son serveur et ses apps - YannStatic](https://static.rnmkcy.eu/2019/12/25/yunohost-Sauvegarder_son_serveur_et_ses_apps.html)


