作者adair326 (Iron Robot)
看板Linux
标题Re: [问题] 别人无法用ssh登入我的电脑
时间Thu May 29 15:11:27 2008
※ 引述《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
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.20.143