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

安装ssh服务:

sudo apt-get install ssh

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

1、修改配置文件

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

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

5fe8dbf306c5929aa0b2386322e431e.png

2、重启ssh服务

/etc/init.d/ssh restart

测试:

816fc7d2b517f11deb2d580073fc120.png

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

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...