描述:可以用普通用户登录,无法用root远程登录
1、先用普通用户登录
2、切换为root用户
su root
3、修改sshd_config
vi /etc/ssh/sshd_config
i #切换编辑状态
#修改如下为yes
esc
:wq
systemctl reload sshd
systemctl restart sshd
描述:可以用普通用户登录,无法用root远程登录
1、先用普通用户登录
2、切换为root用户
su root
3、修改sshd_config
vi /etc/ssh/sshd_config
i #切换编辑状态
#修改如下为yes
esc
:wq
systemctl reload sshd
systemctl restart sshd