Login using Social Account
Login using your credentials
Download the slides
Taking you to the next exercise in seconds...
Stay here Next Exercise
Want to create exercises like this yourself? Click here.
Error
can I able to copy ssh key using public key ?
cat ~/.ssh/id_rsa.pub | ssh -i test.pem centos@publicIP "cat >> ~/.ssh/authorized_keys"
I think you should be able to but this command does not look proper to me.
Were you able to copy it to authorized_keys?
Check if ur running centos or ec2-user
1 Introduction to Ansible
2 Ansible - Part 2
3 Ansible Part-3
4 Ansible Part-4
5 Ansible Part-5
6 Ansible Quick Examples
Please login to comment
3 Comments
can I able to copy ssh key using public key ?
cat ~/.ssh/id_rsa.pub | ssh -i test.pem centos@publicIP "cat >> ~/.ssh/authorized_keys"
Upvote ShareI think you should be able to but this command does not look proper to me.
Were you able to copy it to authorized_keys?
Upvote ShareCheck if ur running centos or ec2-user