From 24c61eb2207a22af47ea75d062663a7a1da40448 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 1 Feb 2021 07:19:51 -0600 Subject: [PATCH] /bin/bash fixed redirect. Looks like ssh-copy-id is asking for password due to /bin/sh, use bash for it as well. --- tasks/general/acct_mgmt/keys.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/tasks/general/acct_mgmt/keys.yml b/tasks/general/acct_mgmt/keys.yml index 69b33d4..4c3ac51 100644 --- a/tasks/general/acct_mgmt/keys.yml +++ b/tasks/general/acct_mgmt/keys.yml @@ -6,24 +6,13 @@ # openssh_keypair: # path: /root/.ssh/id_rsa -- name: Create Root's SSH Key +- name: SSH Key | Root | Create shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n args: executable: /bin/bash ignore_errors: yes -- name: Create Root's SSH Key - shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa +- name: SSH Key | Root | Copy to 1337 + shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet args: - stdin: "n" - ignore_errors: yes - -- name: Create Root's SSH Key - shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa - args: - executable: /bin/bash - stdin: "n" - ignore_errors: yes - -- name: Join System to 1337 Share - shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet \ No newline at end of file + executable: /bin/bash \ No newline at end of file