mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-10-06 21:35:58 +08:00
Update ipv4_static_ipv6_dhcp_interfaces.cfg
This commit is contained in:
parent
cfa6b75bad
commit
22f857b328
1 changed files with 0 additions and 2 deletions
|
@ -59,8 +59,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
|
||||||
|
|
Loading…
Add table
Reference in a new issue