SCP upload and download

upload example

scp "your/local/file/path/localfile.zip" user@server:/remote/path

download example

scp user@server:/path/to/remotefile.zip /Local/Target/Destination

Download files that need sudo privledges

  1. first ssh in
  2. copy to home folder using sudo
  3. sudo chown user filename
  4. download using scp
  5. delete copy in home folder with ssh