标签归档:谷歌云连接Xshell

GCP谷歌云VPS实例直接连接XSHELL教程

1.输入 sudo –i 进入root权限 2.输入 vi /etc/ssh/sshd_config 编辑sshd_config文件 如果出现上图按回车键即可 3. 将PermitRootLogin no修改为PermitRootLogin yes 4. 将PasswordAuthentication no修改为PasswordAuthentication yes 注:如第二个 PasswordAuthentication 为 no 也将其修改为yes 5. 按esc退出编辑模式,输入 :wq 保存(需手动输入) 6.添加密码 输入 passwd root 注意!输入密码是不显示的,输入后按回 …