mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-09 23:05:49 +08:00
Update ipv4_static_ipv6_dhcp_interfaces.cfg
This commit is contained in:
parent
802635c4e0
commit
a19f975ca8
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#cloud-config
|
#cloud-config
|
||||||
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
|
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
|
||||||
# https://cloudinit.readthedocs.io/en/22.1_a/
|
# https://cloudinit.readthedocs.io/en/22.1_a/
|
||||||
datasource_list: [NoCloud]
|
datasource_list: [ NoCloud, None ]
|
||||||
|
|
||||||
# configure localization
|
# configure localization
|
||||||
locale: en_US.UTF-8
|
locale: en_US.UTF-8
|
||||||
|
@ -50,6 +50,7 @@ runcmd:
|
||||||
- sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
- sed -ri 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
|
||||||
- sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
|
- sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
|
||||||
- systemctl enable sshd
|
- systemctl enable sshd
|
||||||
|
- ssh-keygen -A
|
||||||
- systemctl restart sshd
|
- systemctl restart sshd
|
||||||
- systemctl stop kdump
|
- systemctl stop kdump
|
||||||
- systemctl disable kdump
|
- systemctl disable kdump
|
||||||
|
|
Loading…
Add table
Reference in a new issue