Running Commands on Another Computer

ssh host 'command' runs one command on another computer and brings back its output and its exit code, the kind of quotes decides which computer fills in a $variable, and a short deploy script copies a site with rsync and checks it with ssh in one step.

Updated

Cheat sheet for the lesson Running Commands on Another Computer: ssh host 'command' runs one command on another computer and brings back its output and its exit code, the kind of quotes decides which computer fills in a $variable, and a short deploy script copies a site with rsync and checks it…
Category
Bash
Level
Freelancer
Tags
deploy-script, linux, quoting, remote-command, ssh, unix