Linux-解决putty无法直接使用root用户远程登录linux主机的问题
时间:2022-04-03 13:13
问题描述: 有时,在使用putty连接远程linux主机时会发现,无法直接使用root登录, 但是可以使用其他用户登录,然后切换至root用户.
解决办法: 1.修改配置文件
vi /etc/ssh/sshd_config
2.查找PermitRootLogin项, 设置为
PermitRootLogin yes
3.保存退出
4.重启ssh服务,问题解决