看板Linux
標 題Re: [問題] 別人無法用ssh登入我的電腦
發信站雁渡蘭潭 (Fri May 30 15:04:11 2008)
轉信站ptt!ctu-reader!ctu-peer!news.nctu!news.csie.ncyu!landscape
※ 引述《[email protected] (穆 N)》之銘言:
> 很抱歉很晚才回應各位大大 因為有些東西我不懂所以查了一下才執行各位大大的建議
> 目前我一樣有試著把 Firewall 和 SELinux 都先關閉
> [root@localhost ~]# ssh XXX.XXX.XXX.XXX
> ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
> 也出現了上述無法連線的情況
> 當我執行
> [root@localhost ~]# nc HOST PORT
> nc: port range not valid
> 這個就不懂這什麼意思了 >"<
> 我也查過sshd_config
> #LoginGraceTime 2m
> #PermitRootLogin yes
> #StrictModes yes
> #MaxAuthTries 6
> 有這些 然後我有試過把#去掉 但是結果一樣不能連
> 所以想再請問大大我是否還有沒注意到要改的地方??
> 感謝各位的幫忙!!
檢查一下 /etc/hosts.allow , /etc/hosts.deny
看看 sshd 是不是有所限制。
--
→↓ O
rigin:
嘉大資工˙雁渡蘭潭 landscape.twbbs.org
↑← Au
thor: Brent 從
news.csie.ncyu.edu.tw 發表