linux中无法使用root用户进行远程登录

linux中无法使用root用户进行远程登录

安装ssh服务:

sudo apt-get install ssh

默认情况下只有普通用户能远程连接,如果要开启root用户的话:

1、修改配置文件

在线视频教程推荐:linux视频教程

编辑sudo vim /etc/ssh/sshd_config文件,将PermitRootLogin的值修改为yes

linux中无法使用root用户进行远程登录

2、重启ssh服务

/etc/init.d/ssh restart

测试:

linux中无法使用root用户进行远程登录

相关文章教程推荐:linux视频教程

以上就是

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享