
排除防火墙策略后,用systemctl status sshd发现是ssh服务没起,用systemctl start sshd 后报错
'''job for sshd.service failed because the control process exited with error code. see systemctl status sshd.service and journalctl -xe for details'''
用sshd -t查看提示ssh权限太大,用命令更改再次启动ssg
''' chmod 700 /etc/ssh/*
sshd -t'''
首先先查看SELINUX和防火墙,如果没有再来查看iptablesiptables -L查看ip过滤规则(iptables可以做防火墙但是他本身其实是个ip过滤规则系统而已)
如果是设置的话
例如:允许192.168.10.0网段的通过80端口,其他则拒绝的话
iptables -A INPUT -s 192.168.10.0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)