How to send my public keys to EC2 server?
Ok! I found an way.
In the client side:
cat ~/.ssh/id_rsa.pub | ssh -i aws.pem ubuntu@ip_address "cat - >> ~/.ssh/authorized_keys2"
All done!
Ok! I found an way.
In the client side:
cat ~/.ssh/id_rsa.pub | ssh -i aws.pem ubuntu@ip_address "cat - >> ~/.ssh/authorized_keys2"
All done!