mirror of
https://github.com/proxysu/ProxySU.git
synced 2025-02-17 15:13:12 +03:00
Updated 谷歌云开启root账户与密码登录 (markdown)
parent
aae346e8e2
commit
16bafbb37e
@ -11,11 +11,11 @@
|
|||||||
|
|
||||||
`sudo sed -i 's/PermitEmptyPasswords /#PermitEmptyPasswords /g' /etc/ssh/sshd_config`
|
`sudo sed -i 's/PermitEmptyPasswords /#PermitEmptyPasswords /g' /etc/ssh/sshd_config`
|
||||||
|
|
||||||
`sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config`
|
`echo "PermitRootLogin yes" | sudo tee -a /etc/ssh/sshd_config`
|
||||||
|
|
||||||
`sudo echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config`
|
`echo "PasswordAuthentication yes" | sudo tee -a /etc/ssh/sshd_config`
|
||||||
|
|
||||||
`sudo "PermitEmptyPasswords no" >> /etc/ssh/sshd_config`
|
`echo "PermitEmptyPasswords no" | sudo tee -a /etc/ssh/sshd_config`
|
||||||
|
|
||||||
`sudo systemctl restart sshd`
|
`sudo systemctl restart sshd`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user