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

求助大佬~ iSH 同步 Github 报错 Could not read from remote repository

  •  
  •   hahawode · 2022-02-23 16:34:55 +08:00 · 1075 次点击
    这是一个创建于 764 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题

    • 我是用了默认的 iSH 中 root 账户;
    • 把 root 账户的 rsa.pub 已经添加到 Github (/etc/ssh/ssh_host_rsa_key.pub + ~/.ssh/id_rsa.pub
    • iSH 挂载了文件夹 Obsidian/note

    iSH 同步出错

    shanzhaiguo:/mnt/note# git clone [email protected]:miloweimo/note.git .
    Cloning into '.'...
    /bin/ash: exec: line 1: connect: not found
    banner exchange: Connection to UNKNOWN port 65535: Broken pipe
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    想给 ssh 代理,我的~/.ssh/config

    Host github.com *.github.com
      User git
      Port 22
     # IdentityFile "~/.ssh/id_rsa"
      IdentityFile "/etc/ssh/ssh_host_rsa_key"
     # ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1082
      ProxyCommand connect -H 127.0.0.1:1082 %h %p
    

    这里我想挂上 ssr ,好像没生效?

    PS. 使用 Working Copy 可以 fetch 到文件。。

    请教大佬,想有哪里需要排查吗?感激不尽!🙏

    1 条回复    2022-04-18 17:57:16 +08:00
    zh826256645
        1
    zh826256645  
       2022-04-18 17:57:16 +08:00
    我也是设置了代理,配置如下

    Host github.com
    User git
    Hostname github.com
    Port 22
    ProxyCommand nc -x 127.0.0.1:7890 %h %p
    Preferredauthentications publickey
    IdentityFile ~/.ssh/id_rsa
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   997 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:07 · PVG 04:07 · LAX 13:07 · JFK 16:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.