谷歌云第三方SSH工具登录

谷歌云第三方SSH工具登录一,设置 root 密码

  1. 先选择从浏览器打开 ssh 连接服务器
  2. 切换到 root 账号,输入代码:sudo -i
  3. 设置 root 密码,输入代码:passwd

二,开启 SSH 权限

  1. CentOS 和 Debian 通用,输入以下两条命令
sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config

sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
  • 1
  • 2
  • 3
  1. Ubuntu 系统,输入以下两条命令
sed -i 's/ #PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config 

sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
  • 1
  • 2
  • 3
  1. 重启服务器 :
reboot
  • 1

以上就是谷歌云设置 ROOT 用户以及允许第三方 SSH 登录教程。

THE END