I need to send a public key to an EC2, without use the ec2-* api commands, and I can't.
I've tried scp and ssh-copy-id, but booth can't use the -i parameter to connect using the keypairs.
The ssh-copy-id -i parameter are the file (public key) to be sent.
What can I do to upload it?
scpdoes support-i. You can use it asscp -i your_pem.pem your_file user@aws_ip:/home/user/. You probably be getting error because of your permissions on your pem file. It should be400(i.e.chmod 400 your_pem.pem) – guleria Feb 17 '16 at 07:38