mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-06 05:16:38 +08:00
Update dhcp_interfaces.cfg
This commit is contained in:
parent
6a99654166
commit
f9872537f5
1 changed files with 0 additions and 3 deletions
|
@ -42,9 +42,6 @@ network:
|
|||
|
||||
# later commands
|
||||
runcmd:
|
||||
- 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
|
||||
- systemctl enable sshd
|
||||
- ssh-keygen -A
|
||||
- systemctl restart sshd
|
||||
|
|
Loading…
Add table
Reference in a new issue