

免费资源网 – https://freexyz.cn/
因公司服务器环境复杂,早期运维文档均不存在。在修改个别sshd配置文件时发现重启服务后无法生效,再排查问题后在此记录。
问题排查一般默认sshd配置文件路径为: /etc/ssh目录下,但在该目录下修改sshd_config配置文件时发现无法生效。
总结问题查看方法查看sshd当前配置
[root@localhost ~]# sshd -T |grep etchostkey /usr/etc/ssh_host_rsa_key hostkey /usr/etc/ssh_host_dsa_key hostkey /usr/etc/ssh_host_ecdsa_key hostkey /usr/etc/ssh_host_ed25519_key获取sshd需加载哪些文件
[root@localhost ~]# strace -e open -ostrace.out /usr/sbin/sshd [root@localhost ~]# cat strace.out |grep config检查sexlinux防火墙
[root@localhost ~]# getenforce Disabled
免费资源网 – https://freexyz.cn/
© 版权声明
THE END
暂无评论内容