mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-12-26 09:42:44 +08:00
Update ipv4_static_interfaces.cfg
This commit is contained in:
parent
a0fb65f451
commit
4e108bccae
1 changed files with 1 additions and 2 deletions
|
@ -74,12 +74,11 @@ network:
|
|||
# Update grub.
|
||||
# Delete cloud-init config file itself and disable it permanently after first execution.
|
||||
runcmd:
|
||||
- systemctl disable ssh.socket
|
||||
- systemctl enable ssh.service
|
||||
- systemctl daemon-reload
|
||||
- update-rc.d ssh enable
|
||||
- kill -9 $(ps -ef | grep '/usr/sbin/sshd' | gawk '$0 !~/grep/ {print $2}' | tr -s '\n' ' ')
|
||||
- /etc/init.d/ssh restart
|
||||
- ufw allow sshPORT
|
||||
- sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
|
||||
- sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
|
||||
- apt update
|
||||
|
|
Loading…
Reference in a new issue