Skip to content

fsadykov/aws_copy_publickeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS copy multiple ssh public keys to ec2 intense

Main playbook

Adding your list of public keys

Please follow the steps to best results.

Open the copy_public_kyes playbook and change variable public_keys to your list.

     public_keys:
      - ssh-rsa 121
      - ssh-rsa 122
      - ssh-rsa 123

Please change the hosts file to your remote hosts

Run the playbook

ansible-playbook -u centos  --private-key=keyforec2.pem copy_public_kyes.yml

Try to login as root

Thank you for using my playbook😊

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published