Update ipv4_static_ipv6_dhcp_interfaces.cfg

This commit is contained in:
Molly Lau 2023-09-29 08:17:28 +09:00 committed by GitHub
parent 802635c4e0
commit a19f975ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#cloud-config
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
# https://cloudinit.readthedocs.io/en/22.1_a/
datasource_list: [NoCloud]
datasource_list: [ NoCloud, None ]
# configure localization
locale: en_US.UTF-8
@ -50,6 +50,7 @@ runcmd:
- sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
- sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
- systemctl enable sshd
- ssh-keygen -A
- systemctl restart sshd
- systemctl stop kdump
- systemctl disable kdump