mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-05 04:44:55 +08:00
Update ipv4_static_interfaces.cfg
This commit is contained in:
parent
6114bb30ca
commit
0ec888add9
1 changed files with 1 additions and 2 deletions
|
@ -60,7 +60,7 @@ network:
|
||||||
addresses: [ipDNS1, ipDNS2]
|
addresses: [ipDNS1, ipDNS2]
|
||||||
|
|
||||||
# later commands
|
# later commands
|
||||||
# Replace ssh port, enable sshd service.
|
# Enable sshd service.
|
||||||
# Disable kernel need to restart: https://askubuntu.com/questions/1349884/how-to-disable-pending-kernel-upgrade-message
|
# Disable kernel need to restart: https://askubuntu.com/questions/1349884/how-to-disable-pending-kernel-upgrade-message
|
||||||
# Install some common components.
|
# Install some common components.
|
||||||
# Configure vim for more convenient to use.
|
# Configure vim for more convenient to use.
|
||||||
|
@ -68,7 +68,6 @@ network:
|
||||||
# Configure fail2ban.
|
# Configure fail2ban.
|
||||||
# Delete cloud-init config file itself and disable it permanently after first execution.
|
# Delete cloud-init config file itself and disable it permanently after first execution.
|
||||||
runcmd:
|
runcmd:
|
||||||
- sed -ri 's/^#?Port.*/Port sshPORT/g' /etc/ssh/sshd_config
|
|
||||||
- update-rc.d ssh enable
|
- update-rc.d ssh enable
|
||||||
- ssh-keygen -A
|
- ssh-keygen -A
|
||||||
- /etc/init.d/ssh restart
|
- /etc/init.d/ssh restart
|
||||||
|
|
Loading…
Add table
Reference in a new issue