每次尝试克隆我的 Git 存储库时,我都会遇到 fatal error :
我运行这个:
$ git clone sftp://foo@bar.ca/git/foobar.git
我明白了:
fatal: Unable to find remote helper for 'sftp'
我正在尝试从一台服务器克隆到另一台服务器,两者都使用 SSH 身份验证。
我需要安装什么来启用这个 SFTP 远程助手吗?
提前感谢您提供的任何建议!
最佳答案
为了让 jdi 上面的评论更明确:Git 中没有 sftp 远程助手。 Available remote helpers包括 git-remote-ftps,但是 ftps ( FTP over SSL ) 和 sftp ( SSH File Transfer Protocol ) 是 fundamentally different protocols .也就是说,使用 ftps 克隆 Git 存储库并不常见,您可能想改用 ssh。
关于git - 通过 SFTP 克隆 Git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9163295/