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
- first ssh in
- copy to home folder using sudo
- sudo chown user filename
- download using scp
- delete copy in home folder with ssh