[問題] CentOS 6 SSH問題

看板Linux作者 (想像力是你的超能力!)時間14年前 (2011/10/25 09:07), 編輯推噓3(306)
留言9則, 5人參與, 最新討論串1/1
請教版上高手 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

10/25 09:09, , 1F
對了,沒有裝SELinux
10/25 09:09, 1F

10/25 09:09, , 2F
而且將iptable disable也一樣
10/25 09:09, 2F

10/25 12:59, , 3F
644 root:root ?
10/25 12:59, 3F

10/25 13:49, , 4F
有設過644,也有設過777 都不行QQ
10/25 13:49, 4F

10/25 14:29, , 5F
有把先前存的主機hash清掉嗎?
10/25 14:29, 5F

10/25 14:49, , 6F
RHEL 6不裝SELinux還是會啟動....CentOS 6應該也是?
10/25 14:49, 6F

10/25 15:49, , 7F
所以主要是SELinux的問題嗎?!
10/25 15:49, 7F

10/25 16:44, , 8F
謝謝樓上!真的把SELinux的enforcing改成disable就可以了!
10/25 16:44, 8F

10/25 18:04, , 9F
更新selinux policy吧 selinux對安全真的很有幫助
10/25 18:04, 9F
文章代碼(AID): #1EfWlZH8 (Linux)