1.进入谷歌云实例面板


2.切换到root角色
sudo -i

3.修改SSH配置文件/etc/ssh/sshd_config
vi /etc/ssh/sshd_config

修改PermitRootLogin和PasswordAuthentication为yes

# Authentication:
PermitRootLogin yes //默认为no,需要开启root用户访问改为yes

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes //默认为no,改为yes开启密码登陆

4.给root用户设置密码
passwd root

5.重启SSH服务使修改生效
/etc/init.d/ssh restart

6.登录
在xshell中,直接使用root账号密码登录。

相关文章:

  • 2021-11-26
  • 2021-11-03
  • 2021-05-19
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-06-05
  • 2021-04-08
  • 2022-12-23
  • 2021-11-09
  • 2021-06-12
  • 2022-02-08
相关资源
相似解决方案