Sometimes you may need to copy file to EC2 instance without password using SCP. Here is how to use SCP with PEM file (SSH key).
scp
SCP command in Linux to copy file from one server to another
SCP utility allows you to securely copy files & folders between two locations. Here is the SCP command to copy file from one server to another.