14-11-2023
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user