看板 Linux 關於我們 聯絡資訊
請教版上高手 CentOS 6 kernel 2.6.32-71.el6.i686 已安裝open-ssh和tcp_wrappers 遠端此台電腦被拒絕,message是 ssh_exchange_identification connection closed by remote host 到此台電腦上查看,在/var/log/secure裡看到 sshd[7435]:warning: cannot open /etc/hosts.deny: Permission denied. sshd[7435]:warning: cannot open /etc/hosts.allow: Permission denied. 接著就refused 嘗試改/etc/hosts.allow hosts.deny的權限也無法(一模一樣的檔在CentOS4上work) 並且也已經將sshd_config改成Protocal 1,2(允許舊版ssh login) google了一下似乎跟public-key有關?有人遇過類似問題嗎??大感謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.95.251
wuhuhu:對了,沒有裝SELinux 10/25 09:09
wuhuhu:而且將iptable disable也一樣 10/25 09:09
soem:644 root:root ? 10/25 12:59
wuhuhu:有設過644,也有設過777 都不行QQ 10/25 13:49
abliou:有把先前存的主機hash清掉嗎? 10/25 14:29
Nephom:RHEL 6不裝SELinux還是會啟動....CentOS 6應該也是? 10/25 14:49
wuhuhu:所以主要是SELinux的問題嗎?! 10/25 15:49
wuhuhu:謝謝樓上!真的把SELinux的enforcing改成disable就可以了! 10/25 16:44
Adama:更新selinux policy吧 selinux對安全真的很有幫助 10/25 18:04