sudo passwd root

切换到root账户

su root

允许远程root账户连接linux

vi /etc/ssh/sshd_config

#PermitRootLogin prohibit-password //注释此行
PermitRootLogin yes //加入此行

//重启服务
service ssh restart

相关文章:

  • 2021-10-08
  • 2021-04-05
  • 2022-01-17
  • 2022-12-23
  • 2021-08-15
  • 2021-05-09
猜你喜欢
  • 2022-12-23
  • 2021-09-07
  • 2021-12-21
  • 2022-12-23
  • 2021-12-26
  • 2022-01-13
  • 2021-12-31
相关资源
相似解决方案