diff options
author | binary <me@rgoncalves.se> | 2020-11-10 22:59:36 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-10 22:59:36 +0100 |
commit | 19b568c0917bdba5d5138d925216525afb052023 (patch) | |
tree | ed9c03683b375e10d05a7ff612d1780e4e86a069 /roles/vmm | |
parent | 73152d7c51ec278d62caa6087fd091eaa12de998 (diff) | |
download | infrastructure-19b568c0917bdba5d5138d925216525afb052023.tar.gz |
Add sshd on boot
Diffstat (limited to 'roles/vmm')
-rw-r--r-- | roles/vmm/files/init_vm_alpine.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/vmm/files/init_vm_alpine.py b/roles/vmm/files/init_vm_alpine.py index d9dc0d5..126a0bc 100644 --- a/roles/vmm/files/init_vm_alpine.py +++ b/roles/vmm/files/init_vm_alpine.py @@ -47,7 +47,8 @@ def init_ssh(): [1, "mkdir /root/.ssh"], [1, f"echo '{SSHKEY}' > /root/.ssh/authorized_keys"], [1, f"echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config"], - [1, "/etc/init.d/sshd restart"] + [1, "/etc/init.d/sshd restart"], + [1, "rc-update add sshd"] ]) def init_packages(): |