V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
leozlee
V2EX  ›  问与答

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

  •  1
     
  •   leozlee · 2018-09-11 11:55:06 +08:00 · 379 次点击
    这是一个创建于 2123 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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
       2018-09-11 14:43:23 +08:00
    问题解决了,原来我使用的是默认端口,后来在 google 上查看一个类似的问题,将 sshd 端口号改成大于 1024 就可以了。
    Problem solved.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5288 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:48 · PVG 10:48 · LAX 19:48 · JFK 22:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.