別人無法用ssh登入我的電腦 - Linux

By Zora
at 2008-05-29T23:32
at 2008-05-29T23:32
Table of Contents
※ 引述《adair326 (Iron Robot)》之銘言:
: ※ 引述《zerogw (穆 N)》之銘言:
: : 我使用的是fedora 4 要請別人用ssh登入進我電腦
: : 但是當別人輸入
: : [root@linux ~]# ssh root@我的IP位置
: : 就會停在那邊很久 然後最後出現無法連線的訊息
: : 我試者照鳥哥的步驟執行看看是否ssh server有沒有在執行
: : [root@linux ~]# /etc/init.d/sshd restart
: : [root@linux ~]# netstat -tlp
: : Active Internet connections (only servers)
: : Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
: : tcp 0 0 *:ssh *:* LISTEN 24266/sshd
: : 也出現像上面的情況 State 是 LISTEN
: : 也執行過/etc/rc.d/init.d/sshd start 來重起ssh
: : 也檢查過防火牆和SELinux 並沒有擋住ssh
: : 想請問各位大大要怎麼讓別人連進我電腦
: : 是否有什麼沒有注意到的?
: 如果是用root登入的話,檢查看看/etc/ssh/sshd_config裡面有沒有這一行,
: PermitRootLogin yes
為了安全的緣故
建議還是不要用root連ssh
還是用其他的帳號連線完之後再用su切換成root吧
--
--
: ※ 引述《zerogw (穆 N)》之銘言:
: : 我使用的是fedora 4 要請別人用ssh登入進我電腦
: : 但是當別人輸入
: : [root@linux ~]# ssh root@我的IP位置
: : 就會停在那邊很久 然後最後出現無法連線的訊息
: : 我試者照鳥哥的步驟執行看看是否ssh server有沒有在執行
: : [root@linux ~]# /etc/init.d/sshd restart
: : [root@linux ~]# netstat -tlp
: : Active Internet connections (only servers)
: : Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
: : tcp 0 0 *:ssh *:* LISTEN 24266/sshd
: : 也出現像上面的情況 State 是 LISTEN
: : 也執行過/etc/rc.d/init.d/sshd start 來重起ssh
: : 也檢查過防火牆和SELinux 並沒有擋住ssh
: : 想請問各位大大要怎麼讓別人連進我電腦
: : 是否有什麼沒有注意到的?
: 如果是用root登入的話,檢查看看/etc/ssh/sshd_config裡面有沒有這一行,
: PermitRootLogin yes
為了安全的緣故
建議還是不要用root連ssh
還是用其他的帳號連線完之後再用su切換成root吧
--
--
Tags:
Linux
All Comments
Related Posts
Re: 請問安裝fortran77的問題

By Dorothy
at 2008-05-29T22:38
at 2008-05-29T22:38
無法啟動SAMBA

By Anonymous
at 2008-05-29T21:55
at 2008-05-29T21:55
有人在wine中成功裝過windows media player10嗎?

By Edith
at 2008-05-29T21:35
at 2008-05-29T21:35
無法啟動SAMBA

By Callum
at 2008-05-29T21:32
at 2008-05-29T21:32
SA@Taichung 六月 FAX Server 傳真伺服器

By Xanthe
at 2008-05-29T18:55
at 2008-05-29T18:55