V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
itabas016
V2EX  ›  Raspberry Pi

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

  •  
  •   itabas016 · 2016-09-25 11:38:59 +08:00 · 5008 次点击
    这是一个创建于 2762 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 [email protected]
    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 这个是有安装的,有没有人遇到过这类问题的~

    1 条回复    2016-10-06 12:27:38 +08:00
    mingl0280
        1
    mingl0280  
       2016-10-06 12:27:38 +08:00
    service sshd start
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5228 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:17 · PVG 17:17 · LAX 02:17 · JFK 05:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.