Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Difference between running a script locally and remotely

$
0
0
Hello,

Please, what is the difference between running a script remotely:

Code:

    ssh -t root@$machine -x "sshpass -p 'ubuntu' ssh -t ubuntu@$address -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul -x './c-launch.sh'"
and running a script directly on the host:

Code:

    ./c-launch.sh

Viewing all articles
Browse latest Browse all 16232

Trending Articles