求助: Raspberry Pi3 wan 口的静态 IP 能 ping 通, ssh 却 Connection refused

2016-09-25 11:38:59 +08:00
 itabas016

pi3 的 wifi wan 口是设置的静态 IP, eth0 口设置的 DHCP 自动获取。 之前一切运行正常,昨天打扫卫生就关了路由器电源,开电源后就这样了。。。

openWrt 路由表正常:

ARP
IPv4-地址	接口
192.168.11.161	br-lan
192.168.11.196	br-lan
192.168.11.201	br-lan
192.168.11.2	br-lan

ping

C:\Users\Roger>ping 192.168.11.2 -t

Pinging 192.168.11.2 with 32 bytes of data:
Reply from 192.168.11.2: bytes=32 time=16ms TTL=64
Reply from 192.168.11.2: bytes=32 time=6ms TTL=64
Reply from 192.168.11.2: bytes=32 time=14ms TTL=64
Reply from 192.168.11.2: bytes=32 time=7ms TTL=64
Reply from 192.168.11.2: bytes=32 time=7ms TTL=64

ssh 直接 Connection refused

root@OpenWrt:~# ssh pi@192.168.11.2
ssh: Exited: Error connecting: Connection refused

telnet 也连不上

C:\Users\Roger>telnet 192.168.11.2 22
Connecting To 192.168.11.2...Could not open connection to the host, on port 22: Connect failed

我试了插上网线,获取不到动态 IP 了,只有 wan 口的静态 IP.之前两个连接都正常。

怎么感觉断电后, pi3 的 22 端口就挂了似的, openssh-server 这个是有安装的,有没有人遇到过这类问题的~

5020 次点击
所在节点    Raspberry Pi
1 条回复
mingl0280
2016-10-06 12:27:38 +08:00
service sshd start

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/308810

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX