V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hahawode
V2EX  ›  程序员

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

  •  
  •   hahawode ·
    miloweimo · Feb 23, 2022 · 1802 views
    This topic created in 1534 days ago, the information mentioned may be changed or developed.

    如题

    • 我是用了默认的 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 replies    2022-04-18 17:57:16 +08:00
    zh826256645
        1
    zh826256645  
       Apr 18, 2022
    我也是设置了代理,配置如下

    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1153 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 23:15 · PVG 07:15 · LAX 16:15 · JFK 19:15
    ♥ Do have faith in what you're doing.