copy private ssh-key and paste to NAT-Server
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
src: /tmp/id_rsa.pub
|
||||
dest: ~/.ssh/
|
||||
|
||||
- name: Copy Private ssh-key and paste to NAT-Server
|
||||
copy:
|
||||
src: /tmp/id_rsa
|
||||
dest: ~/.ssh/
|
||||
|
||||
- name: Change Permission of the Private ssh-key only to read for the User
|
||||
raw: "chmod 0400 ~/.ssh/id_rsa"
|
||||
|
||||
|
||||
@@ -6,3 +6,5 @@
|
||||
community.crypto.openssh_keypair:
|
||||
path: /tmp/id_rsa
|
||||
type: rsa
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user