我正在尝试克隆Windows上的远程存储库,但当我这样做时:
git clone git@github.com:organization/xxx.git
我得到了这个错误:
error: cannot run ssh: No such file or directory
fatal: unable to fork
我是不是遗漏了什么?
发布于 2012-09-25 01:11:55
您没有安装ssh (或者您的搜索路径中没有ssh)。
你也可以通过http从github克隆:
git clone http://github.com/organization/xxx
发布于 2018-05-30 08:18:38
检查您是否安装了ssh-client
。这解决了docker机器上的问题,即使存在ssh密钥:
apt-get install ssh-client
发布于 2017-06-28 14:17:54
很可能您的GIT_SSH_COMMAND
引用了不正确的公钥。
尝试:
export GIT_SSH_COMMAND="ssh -i /home/murphyslaw/.ssh/your-key.id_rsa
然后
git clone git@github.com:organization/xxx.git
https://stackoverflow.com/questions/12569705
复制相似问题