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