TortoiseGit:无法使用SSH在VPS上克隆私人存储库

Ahm*_*aan 5 git tortoisegit

我正在尝试使用TortoiseGit git克隆存储库。我只有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.
Run Code Online (Sandbox Code Playgroud)

但是,我能够在Windows上使用Git Bash git克隆我的私有存储库。真奇怪 将TortoiseGit用于SSH时,我做的正确吗?

cry*_*rch 0

虽然我不熟悉 TortoiseGit,但看起来您应该使用一种在许多通过 SSH 进行复制的应用程序中常见的语法。那是:<username>@<server>:/path/to/thing/that/needs/copying。(注意中间附近的冒号。)

我建议更改您正在运行的命令,在前面添加一个冒号/home

git.exe clone --progress -v "ssh://git@xx.xx.xx.xx:/home/git/git-repo/myproject.git" "C:\xampp\htdocs\myproject"
Run Code Online (Sandbox Code Playgroud)