CentOS 6 SSH問題 - Linux

Table of Contents

請教版上高手 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有關?有人遇過類似問題嗎??大感謝!!

--

All Comments

Leila avatarLeila2011-10-26
對了,沒有裝SELinux
而且將iptable disable也一樣
Charlie avatarCharlie2011-10-28
644 root:root ?
Vanessa avatarVanessa2011-11-02
有設過644,也有設過777 都不行QQ
Thomas avatarThomas2011-11-04
有把先前存的主機hash清掉嗎?
Jacky avatarJacky2011-11-05
RHEL 6不裝SELinux還是會啟動....CentOS 6應該也是?
Aaliyah avatarAaliyah2011-11-08
所以主要是SELinux的問題嗎?!
Jacob avatarJacob2011-11-12
謝謝樓上!真的把SELinux的enforcing改成disable就可以了!
Kristin avatarKristin2011-11-15
更新selinux policy吧 selinux對安全真的很有幫助