copy private ssh-key and paste to NAT-Server

This commit is contained in:
2024-04-09 11:39:57 +02:00
parent f29f47ba64
commit f6353fc036
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -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"
+2
View File
@@ -6,3 +6,5 @@
community.crypto.openssh_keypair:
path: /tmp/id_rsa
type: rsa