Working Remotely

Working Remotely: Copying Between Computers: scp and rsync, Running Commands on Another Computer.

Updated

  1. Copying Between Computers: scp and rsync (Journeyman): scp copies a file or two to or from another computer, and rsync sends a whole folder but only what changed; both write the other computer's side as host:path, with a colon, and rsync -n rehearses first.
  2. Running Commands on Another Computer (Freelancer): 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.