Bash - Download Secure Copy File from AWS EC2 Server to Local Machine

# Copies file from the server to your local machine :' scp -i {identity} {user}@{ip}:{remote-file} {local-folder} ' scp -i /Path/To/Key.pem ec2-user@ /Local/Folder/Path # Copies file from your local machine to the server :' scp -i {identity} -p {local-file} {user}@{ip}:{remote-folder} ' scp -i /Path/To/Key.pem -p /Local/file.txt ec2-user@
Incorrect permissions on remote server can stop uploads. `root` perm on an upload folder will block the `ec2-user` upload.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.