git - 通过 SFTP 克隆 Git 存储库

标签 git ssh sftp

每次尝试克隆我的 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/

相关文章:

wordpress - 高级自定义字段 (ACF) Pro acf-json 工作流程

c# - Renci SSH.Net SFTP 间歇性连接问题

linux - 如何使用 sftp get 命令重命名文件

perl - 使用 ssh sftpg3 进行文件传输

ssh - Ansible 无法与 SSH 连接(横幅交换)

c# - 仁慈SSH.NET : Is it possible to create a folder containing a subfolder that does not exist

git:删除由一系列错误提交引入的更改

git - 使用 BFG repo-cleaner 后检查 git repo

git - 无法从 Git Extensions 向 GitHub 进行身份验证?

linux - 在远程机器上执行多个命令