【发布时间】:2019-01-26 05:40:40
【问题描述】:
我正在尝试使用 TortoiseGit 克隆一个存储库。我只能通过 SSH 访问我在 VPS 上的 git 存储库。我收到以下错误:
git.exe clone --progress -v "ssh://git@xx.xx.xx.xx/home/git/git-repo/myproject.git" "C:\xampp\htdocs\myproject"
Cloning into 'C:\xampp\htdocs\myproject'...
/usr/bin/bash: git@xx.xx.xx.xx: No such file or directory
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是,我可以在 Windows 上使用 Git Bash 克隆我的私有存储库。这很奇怪。我在使用 TortoiseGit 进行 SSH 时做得正确吗?
【问题讨论】:
-
您确定您的 SSH 密钥可以访问上述存储库吗?您是否正确配置了 SSH 密钥?
-
@DipenShah 我可以使用 SSH 进行 git 克隆,但不能使用 TortoiseGit。 SSH 密钥已添加到 Git 服务器。
-
我刚刚通过 ssh 用 tortoisegit 克隆,我的输出没有
ssh://,git.exe clone --progress -v "git@github.com:user/repo.git" "path/to/some/folder"
标签: git tortoisegit