leozlee
V2EX  ›  问与答

如何在车载移动网络上实现 ssh 反向连接?

  •  1
     
  •   leozlee · Sep 11, 2018 · 686 views
    This topic created in 2813 days ago, the information mentioned may be changed or developed.

    hey,guys. 我最近在研究车载嵌入式产品,boss 想实现一个远程调试功能,我使用的是 SSH 反向连接,在办公室使用网线连接测试正常,但是使用 3G 网络了就有问题.在我的公网服务器上反向连接的时候报:ssh_exchange_identification: Connection closed by remote host. 在我的车载设备上报:connect_to localhost: unknown host (Name or service not known)。

    想请教大家,哪里的问题? thx

    leozlee
        1
    leozlee  
    OP
       Sep 11, 2018
    问题解决了,原来我使用的是默认端口,后来在 google 上查看一个类似的问题,将 sshd 端口号改成大于 1024 就可以了。
    Problem solved.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1491 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:46 · PVG 00:46 · LAX 09:46 · JFK 12:46
    ♥ Do have faith in what you're doing.