Differences between “BEGIN RSA PRIVATE KEY” and “BEGIN PRIVATE KEY”

Hi I was writing a program that imports private keys from a .pem file and create a private key object to use it later.. the problem I have faced is that some pem files header begin with —–BEGIN PRIVATE KEY—– while others begin with —–BEGIN RSA PRIVATE KEY—– through my search I knew that the … Read more

scp (secure copy) to ec2 instance without password

I have an EC2 instance running (FreeBSD 9 AMI ami-8cce3fe5), and I can ssh into it using my amazon-created key file without password prompt, no problem. However, when I want to copy a file to the instance using scp I am asked to enter a password: scp somefile.txt -i mykey.pem [email protected]:/ Password: Any ideas why … Read more