mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 21:54:40 +08:00
Update ipv4_static_ipv6_dhcp_interfaces.cfg
This commit is contained in:
parent
cc8bd228de
commit
0e83fd94d9
1 changed files with 0 additions and 3 deletions
|
@ -46,9 +46,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…
Reference in a new issue