站长资讯网
最全最丰富的资讯网站

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教程

赞(0)
分享到: 更多 (0)

网站地图   沪ICP备18035694号-2    沪公网安备31011702889846号