tasks/setup-secrets: also copy over rsa key
This commit is contained in:
parent
0d8e28e7ba
commit
a2ea0b6139
1 changed files with 1 additions and 0 deletions
1
tasks.py
1
tasks.py
|
@ -88,6 +88,7 @@ def setup_secret(c, hosts = ""):
|
|||
Setup SSH key and print age key for sops-nix
|
||||
"""
|
||||
for h in get_hosts(hosts):
|
||||
h.run("install -m600 -D /etc/ssh/ssh_host_rsa_key /mnt/etc/ssh/ssh_host_rsa_key")
|
||||
h.run("install -m600 -D /etc/ssh/ssh_host_ed25519_key /mnt/etc/ssh/ssh_host_ed25519_key")
|
||||
print(h.host)
|
||||
h.run("nix-shell -p ssh-to-age --run 'cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue