Skip to content

Instantly share code, notes, and snippets.

@shotahorii
Last active April 10, 2019 09:12
Show Gist options
  • Save shotahorii/6ae43f77fdb10d79778262d23ae6eaab to your computer and use it in GitHub Desktop.
Save shotahorii/6ae43f77fdb10d79778262d23ae6eaab to your computer and use it in GitHub Desktop.
Upload and Download file to a server

How to upload/download a file to/from a server in secure

Upload

Following command on terminal (local). (Detailed explanation here)

scp your_file.csv [email protected]:/path/to/destination/directory
Download

Following command on terminal (local; where you want to download the file)

scp -i path/to/pem/file/if/needed [email protected]:/path/to/the/file/to/download .

Don't forget "." at the end.

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