每次我尝试克隆 Git 存储库时都会遇到致命错误:
我运行这个:
$ git clone sftp://[email protected] /cdn-cgi/l/email-protection/git/foobar.git
我得到这个:
fatal: Unable to find remote helper for 'sftp'
我正在尝试从一台服务器克隆到另一台服务器,这两台服务器都使用 SSH 身份验证。
我需要安装什么东西才能启用此 SFTP 远程帮助程序吗?
预先感谢您提供的任何建议!
To make jdi上面的评论更明确:Git 中没有 sftp 远程帮助程序。可用的远程助手 http://www.kernel.org/pub/software/scm/git/docs/git-remote-helpers.html包括 git-remote-ftps, but ftps (通过 SSL 的 FTP http://en.wikipedia.org/wiki/FTPS) and sftp (SSH 文件传输协议 http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol) are 根本不同的协议 http://www.differencebetween.net/technology/internet/difference-between-ftps-and-sftp/。也就是说,使用 ftps 克隆 Git 存储库相当不常见,您可能想使用 ssh 代替。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)