14-11-2023

This commit is contained in:
2023-11-14 20:35:51 +01:00
parent 5b45dc0863
commit d78f93eed2
93 changed files with 8181 additions and 538 deletions

View File

@@ -64,12 +64,21 @@ MemTotal: 1963472 kB
#### Exécuter un script distant sur un serveur distant:
```bash
bruno@SilverBook:~$ ssh -p34987 bruno@xxxxxxx.synology.me ./test.sh
$ ssh -p34987 bruno@xxxxxxx.synology.me ./test.sh
bruno@clicclac.synology.me's password:
09:55:03 up 2 days, 21:49, 0 users, load average: 1.14, 1.25, 1.23
DS916
```
Si le script nécessite un sudo:
```bash
$ ssh -t bruno@maboiteverte.fr ./purge_server.sh
# sinon erreur:
# sudo: no tty present and no askpass program specified
```
#### Exécuter un script local sur un serveur distant: