From 0644cc47a0fc20cb1ac7cf4f47fc855ee27a78b8 Mon Sep 17 00:00:00 2001 From: madereddy <49539048+madereddy@users.noreply.github.com> Date: Tue, 12 Dec 2023 15:30:10 -0500 Subject: [PATCH] Update ReadMe --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e162358..a5dcf4c 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,21 @@ To get started, clone the github repo that goes along with this post: Before jumping into Ansible playbooks, it's crucial to establish a secure and efficient way to connect to your remote machines. SSH key-based authentication offers a more secure alternative to traditional password-based methods. -Add the Public Key to the /.ssh/authorized_keys found on Vaultwarden Secure Notes. +Add the Public Key to the /.ssh/authorized_keys which is found on the ansible machine. + +``` +ssh-copy-id -i ~/.ssh/id_ed25519 user@remote1 + +``` + +If the ansible machine is not available, you can directly modify the /.ssh/authorized_keys file and add the public key found on Vaultwarden Secure Notes. Restart the SSHD Service +``` +sudo systemctl restart sshd +``` + Verify you can log in using the Private Key. ## Section 2: Crafting Your Ansible Inventory File