Skip to content

Instantly share code, notes, and snippets.

@emailrhoads
Last active June 14, 2022 16:36
Show Gist options
  • Save emailrhoads/a641dd89a0a868def646895249a0dbd4 to your computer and use it in GitHub Desktop.
Save emailrhoads/a641dd89a0a868def646895249a0dbd4 to your computer and use it in GitHub Desktop.
[Copy file from EC2 to local] #aws
# scp <user>@<ec2-ip>:<path/to/file/to/download.txt> <filepath/on/local.txt>
scp [email protected]:~/new_results.txt new_results.txt
scp [email protected]:/var/luna/user_data.tsv user_data.tsv
# to send to the EC2
scp new_results.txt [email protected]:~/new_results.txt
scp [email protected]:/var/crape/BulkLoans.20211001_20220124_results.tsv BulkLoans.20211001_20220124_results.tsv
scp BulkLoans.20211001_20220124.csv [email protected]:/var/crape/BulkLoans.20211001_20220124.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment