From 19b568c0917bdba5d5138d925216525afb052023 Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 10 Nov 2020 22:59:36 +0100 Subject: Add sshd on boot --- roles/vmm/files/init_vm_alpine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/vmm/files') 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(): -- cgit v1.2.3