mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-11-24 06:06:07 +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 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`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user