Skip to content

cojuny/ansible-ssh-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-ssh-setup

Automating transfer of public keypair to a linux ssh remote server, bypassing password prompt in future use.

How to use:

  1. Install Ansible and ansible.posix plugin in your local machine.
    # sudo ansible-galaxy collection install ansible.posix
  2. Configure a server (or a virtual server) and remember its ip address, username, and password.
  3. Create a ssh key pair.
    # ssh-keygen
  4. Change the <ip-addr-to-server>, <username>, <location-to-key> in files inventory and add_public keys.yaml accordingly.
  5. Run the scripts:
    # ansible-playbook add_public_keys.yaml -k -K

About

Automating transfer of public keypair to a linux ssh remote server, bypassing password prompt in future use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors