Update dhcp_interfaces.cfg

This commit is contained in:
Molly Lau 2023-09-30 06:20:57 +09:00 committed by GitHub
parent 9a4102ea63
commit 69153cd801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,8 +54,6 @@ network:
# later commands # later commands
runcmd: runcmd:
- sed -ri 's/^#?Port.*/Port sshPORT/g' /etc/ssh/sshd_config - sed -ri 's/^#?Port.*/Port sshPORT/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
- 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