Update ipv4_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-11-14 03:13:47 +09:00 committed by GitHub
parent b2156e91d6
commit 08783bcb1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,13 +65,13 @@ network:
# Reload systemd.
# Make sshd service loading automatically at the next reboot.
# Kill the original sshd service so that to liberate the occupation of "0.0.0.0:22" and "[::]:22" to avoid "error: Bind to port sth on sth failed: Address already in use." causes restarting and applying new configs failure of the sshd service.
# Restart sshd service.
# Disable kernel need to restart: https://askubuntu.com/questions/1349884/how-to-disable-pending-kernel-upgrade-message
# Install some common components.
# Configure vim for more convenient to use.
# Rename netplan config file.
# Configure and restart fail2ban.
# Update grub.
# Restart sshd service.
# Delete cloud-init config file itself and disable it permanently after first execution.
runcmd:
- systemctl disable --now ssh.socket