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

2022-02-23 16:34:55 +08:00
 hahawode

如题

iSH 同步出错

shanzhaiguo:/mnt/note# git clone git@github.com: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 到文件。。

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

1100 次点击
所在节点    程序员
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/835959

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX