root用户无法通过ssh连接Linux系统,sshlinux
root用户无法通过ssh连接Linux系统,sshlinux
ssh协议为了安全,有些版本默认禁止root用户的登陆
cd /etc/ssh
编辑sshd_config文件
cat sshd_config | grep PermitRootLogin
PermitRootLogin yes
完成之后重启服务
systemctl restart sshd & service sshd restart
ssh协议为了安全,有些版本默认禁止root用户的登陆
cd /etc/ssh
编辑sshd_config文件
cat sshd_config | grep PermitRootLogin
PermitRootLogin yes
完成之后重启服务
systemctl restart sshd & service sshd restart
评论暂时关闭