看板 Linux 關於我們 聯絡資訊
※ 引述《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吧 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.129.62.1