#cloud-config { "packages": [ "openssh-server" ], "disable_root": false, "ssh_pwauth": false, "write_files": [ { "path": "/root/.ssh/authorized_keys", "owner": "root:root", "permissions": "0600", "content": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample me@host\n" }, { "path": "/etc/ssh/sshd_config.d/10-iroh.conf", "owner": "root:root", "permissions": "0644", "content": "PermitRootLogin prohibit-password\nPasswordAuthentication no\n" }, { "path": "/etc/socialweb-guest-agent/tunnels.json", "owner": "root:root", "permissions": "0644", "content": "{\"tunnels\":[{\"tag\":\"ssh\",\"port\":22}]}\n" } ], "runcmd": [ "systemctl enable --now --no-block ssh || systemctl enable --now --no-block sshd" ] }