How to scp (secure copy) to ec2 instance without password?

If you want to copy a file to an ec2 instance using SCP without a password, you can do it using the private key of that ec2 instance. When you create a new ec2 instance, you need to select a key pair (public key and private key) for that ec2 instance. In order to scp (secure copy) to ec2 instance without password, you need to provide the private key that was downloaded while you have created the key pair as shown below –

Leave a Reply