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

coding.net 的 ssh 问题

  •  
  •   terencehyz · 2017-02-21 20:53:21 +08:00 · 2836 次点击
    这是一个创建于 2627 天前的主题,其中的信息可能已经有所发展或是发生改变。

    coding 的 ssh 密钥用的之前 github 生成的,但是执行$ ssh -T [email protected] 时出现 ssh: connect to host coding.net port 22: Connection refused 的错误。
    hexo 部署的时候会报

    Please make sure you have the correct access rights and the repository exists. FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html Error: ssh: connect to host git.coding.net port 22: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at ChildProcess.<anonymous> (D:\blog\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:37:17) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at ChildProcess.cp.emit (D:\blog\node_modules\cross-spawn-async\lib\enoent.js:37:29) at maybeClose (internal/child_process.js:877:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

    的错误,这个该怎么解决?哪里配置错了吗?

    6 条回复    2018-07-28 10:19:18 +08:00
    terencehyz
        1
    terencehyz  
    OP
       2017-02-21 21:17:42 +08:00
    求助啊,,,折腾了一天了
    bdbai
        2
    bdbai  
       2017-02-21 22:47:48 +08:00 via Android
    imxieke
        3
    imxieke  
       2017-02-21 23:01:03 +08:00 via Android
    难道楼主不知道地址已经变成 git.coding.net 了么?
    我想楼主一定没有看帮助
    tedzhou1221
        4
    tedzhou1221  
       2017-02-22 00:36:37 +08:00 via iPhone
    应该是 [email protected] 我下午才搞过
    tedzhou1221
        5
    tedzhou1221  
       2017-02-22 00:38:31 +08:00 via iPhone
    看错了……尴尬😅
    onlychristmas
        6
    onlychristmas  
       2018-07-28 10:19:18 +08:00
    ssh -T -p 443 git@git-ssh.coding.net
    就可以了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2380 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:30 · PVG 21:30 · LAX 06:30 · JFK 09:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.