Servers and cloud

Copy files to and from a server (scp)

Send a file or folder to a server over SSH, or download one from it.

Fill these in once
  1. Send a file to the server
    Terminal
    scp notes.txt ubuntu@203.0.113.10:~/
  2. Send a whole folder
    Terminal
    scp -r my-site ubuntu@203.0.113.10:~/
  3. Download a file from the server
    Terminal
    scp ubuntu@203.0.113.10:~/notes.txt .
  4. Download a whole folder from the server
    Terminal
    scp -r ubuntu@203.0.113.10:~/my-site .
  1. Send a file to the server
    Terminal · Ubuntu / Debian
    scp notes.txt ubuntu@203.0.113.10:~/
  2. Send a whole folder
    Terminal · Ubuntu / Debian
    scp -r my-site ubuntu@203.0.113.10:~/
  3. Download a file from the server
    Terminal · Ubuntu / Debian
    scp ubuntu@203.0.113.10:~/notes.txt .
  4. Download a whole folder from the server
    Terminal · Ubuntu / Debian
    scp -r ubuntu@203.0.113.10:~/my-site .
  1. Send a file to the server
    PowerShell
    scp notes.txt ubuntu@203.0.113.10:~/
  2. Send a whole folder
    PowerShell
    scp -r my-site ubuntu@203.0.113.10:~/
  3. Download a file from the server
    PowerShell
    scp ubuntu@203.0.113.10:~/notes.txt .
  4. Download a whole folder from the server
    PowerShell
    scp -r ubuntu@203.0.113.10:~/my-site .