From 16bafbb37eaf6eadead23137d957941fef07780f Mon Sep 17 00:00:00 2001 From: proxysu <61810006+proxysu@users.noreply.github.com> Date: Fri, 23 Oct 2020 14:43:51 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20=E8=B0=B7=E6=AD=8C=E4=BA=91=E5=BC=80?= =?UTF-8?q?=E5=90=AFroot=E8=B4=A6=E6=88=B7=E4=B8=8E=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 谷歌云开启root账户与密码登录.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/谷歌云开启root账户与密码登录.md b/谷歌云开启root账户与密码登录.md index 32ef0d0..91e4ebc 100644 --- a/谷歌云开启root账户与密码登录.md +++ b/谷歌云开启root账户与密码登录.md @@ -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`