TortoiseGit: Unable to Git clone private repository on VPS using SSH

tortoise git clone not showing
git clone tortoisegit download
tortoisegit connect to remote repository
tortoise git pull

I am trying to git clone a repository using TortoiseGit. I only have access of SSH to my git repository on VPS. I am getting the following error:

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.

However, I am able to git clone my private repository using Git Bash on windows. That is strange. Am I doing correct while using TortoiseGit for SSH?

Although I'm not familiar with TortoiseGit, it looks like you should be using a syntax which is common amongst many application where copying is done over SSH. That is: <username>@<server>:/path/to/thing/that/needs/copying. (Note the colon near the middle.)

I propose change the command you are running to put a colon just before /home:

git.exe clone --progress -v "ssh://git@xx.xx.xx.xx:/home/git/git-repo/myproject.git" "C:\xampp\htdocs\myproject"

Clone Repository – TortoiseGit – Documentation – TortoiseGit , However, I am able to git clone my private repository using Git Bash on windows. That is strange. Am I doing correct while using TortoiseGit for SSH? I have the same issue with a new iPhone (IOS 12) #202 prevents me from using https with my gogs git server and now this even prevents me from using ssh. My old iPhone also running IOS 12 works fine, but I cloned with an older version of pass for ios and gogs almost a year ago over https.

However, I am able to git clone my private repository using Git Bash on windows

Since you are on Windows, try for testing to use and uncompress the latest Git for Windows portable archive PortableGit-2.19.0-64-bit.7z.exe anywhere you want.

Then setup a simplified path in a CMD session.

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
set GIT_HOME=C:\Path\to\Git
set PATH=%GIT_HOME%;%GIT_HOME%\bin;%GIT_HOME%\usr\bin;%GIT_HOME%\mingw64\bin;%PATH%

Check that the exact same command than the one used by TortoiseGit is still working:

git.exe clone --progress -v "ssh://git@xx.xx.xx.xx/home/git/git-repo/myproject.git" "C:\xampp\htdocs\myproject"

Finally, still from that CMD, launch the Tortoisegitproc.exe GUI executable, and see if the clone can proceed from this session.

Unable to clone Github repo via SSH protocol. HTTPS works , This section talks about how to clone a git repository from an existing repository. At an empty directory, just use the explorer context menu and select Git Clone. Git clone supports http, git and ssh protocol. the section called “Network  Using SSH keys with TortoiseGit client. You can specify the Key Location for Tortoisegit the following way: Open an Explorer Window. Open the Contextmenu and Navigate TortoiseGit > Settings In the now opened window Navigate to Git > Remote Set the Path to your Putty Key in the corresponding Input Box.

If you prefer to clone using ssh key, you need to create and add ssh key to git repositories ssh public keys. Use ssh-keygen to generate your ssh key

How To Configure A Git Client?, I wanted to clone a git repo but had some issues. Unable to clone Github repo via SSH protocol. Try specifying the private key with -i git -i  However, I am able to git clone my private repository using Git Bash on windows. Since you are on Windows, try for testing to use and uncompress the latest Git for Windows portable archive PortableGit-2.19.0-64-bit.7z.exe anywhere you want. Then setup a simplified path in a CMD session.

How To Fix 403 Forbidden Error Pushing to GitHub via HTTPS, Learn how to set up a client to work with a Git repository on your server. After you create a repository on your A2 Hosting account, you probably want to be able to access During installation, TortoiseGit may detect PuTTY SSH sessions already You can clone repositories, manage branches, do push and pull requests,  Generated SSH key. On top, you have a public key that you will use to setup AWS user, but before that, click to Save private key. Store this private key in the safe place, it will be used later by TortoiseGit, to make things easier give this key a file name related to CodeCommit (codecommit.ppk or similar).

How To Create a Remote Shared Git Repository – Konstantin , Learn How To Fix A 403 Forbidden Error When Pushing to GitHub via HTTPS. Core VPS. Managed VPS with root access. Managed VPS. Managed VPS without root access you try to push to a remote GitHub repository using HTTPS from an A2 Hosting server. Method #1: Use SSH; Method #2: Modify the HTTPS URL. Mirror of GoogleCode wiki. Contribute to TortoiseGit/wiki development by creating an account on GitHub.

Solved: git clone is not working for a private repo, And make sure that they can now login to your VPS over the SSH protocol. -t rsa -C "john@yourcompany.com" # Generating public/private rsa key pair. now be able to log on to the Git server from John's computer without Let's proceed with setting up symbolic links and cloning the repository to the  Using SSH Connection. You can use SSH to connect to the remote Git repository. In this case, when adding a new repository, specify the URL of the remote repository in the SSH format. The SSH public key field will appear and display the SSH public key automatically generated by Plesk.

Comments
  • Are you sure your SSH key has access to aforementioned repo? Did you configured SSH key properly?
  • @DipenShah I am able to git clone using SSH but not using TortoiseGit. SSH key is already added to Git Server.
  • I just cloned with tortoisegit through ssh and my output doesn't have ssh:// , git.exe clone --progress -v "git@github.com:user/repo.git" "path/to/some/folder"
  • The problem is specifically about TortoiseGit. I have no problem with Git Bash. Note that I am on windows machine.
  • So you are saying TortoiseGit definitely violates the usual syntax for using Git with SSH? Did you try my suggestion?
  • Yes. TortoiseGit should work the same way as Git Bash but it is not working that way. I am able to Puull/Push to the Git repo using Git Bash but NOT using TortoiseGit. What is it that I am missing? I have tried your syntax but it doesn't work either.
  • Ah, well, if the colon syntax isn't working either then I'm not sure. Sorry for the noise, I didn't have enough rep to just leave a comment on your initial post ;) It seemed better to take a stab at it rather than leave it unanswered :)