From 9b612c27a169fbeacb87e28a7f56206e77d25471 Mon Sep 17 00:00:00 2001 From: Moises Sacal <moises.sacal@uts.edu.au> Date: Tue, 9 Oct 2018 16:58:45 +1100 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8bf64ee..ffce988 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,14 @@ ssh-keygen -t rsa -C "ansible@myremotemachine" -f "$(pwd)/keys/myremotemachine.i Add it to authorized_keys +``` sudo mkdir /home/ansible/.ssh/ sudo touch /home/ansible/.ssh/authorized_keys sudo chmod 700 /home/ansible/.ssh sudo chmod 700 /home/ansible/.ssh/authorized_keys sudo chown -R ansible:ansible /home/ansible sudo cat $(pwd)/keys/HOSTNAME.id_rsa.pub >> /home/ansible/.ssh/authorized_keys +``` #### Step 4. Control Node: Add this key to host.live (Defined in ansible.cfg) -- GitLab