Skip to content

Instantly share code, notes, and snippets.

@aerobless
Created July 25, 2018 08:30
Show Gist options
  • Save aerobless/0a6e82265af950537faafb29529494e5 to your computer and use it in GitHub Desktop.
Save aerobless/0a6e82265af950537faafb29529494e5 to your computer and use it in GitHub Desktop.
Using SCP to transfer files between servers

Upload to server:

scp filename.txt username@ipOrDomain.ch:/var/lib/location/on/server

Download from server:

scp username@ipOrDomain.ch:/var/lib/location/on/server/filename.txt ./

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment