Skip to content

Instantly share code, notes, and snippets.

@quangnd
Created March 20, 2018 02:57
Show Gist options
  • Save quangnd/539f5e2a7f63634c0b73b931414e4a5a to your computer and use it in GitHub Desktop.
Save quangnd/539f5e2a7f63634c0b73b931414e4a5a to your computer and use it in GitHub Desktop.
Upload file to Linux server
> To copy files between your computer and your instance you can use an FTP service like FileZilla or the command scp which stands for secure copy.
> To use scp with a key pair use the following command:
```
scp -i path/to/key file/to/copy user@ec2-xx-xx-xxx-xxx.compute-1.amazonaws.com:path/to/file
```
> To use it without a key pair, just omit the flag -i and type in the password of the user when prompted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment