Update ReadMe
This commit is contained in:
@@ -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.
|
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
|
Restart the SSHD Service
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl restart sshd
|
||||||
|
```
|
||||||
|
|
||||||
Verify you can log in using the Private Key.
|
Verify you can log in using the Private Key.
|
||||||
|
|
||||||
## Section 2: Crafting Your Ansible Inventory File
|
## Section 2: Crafting Your Ansible Inventory File
|
||||||
|
|||||||
Reference in New Issue
Block a user