Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When trying to clone a repository I get the following message 'tilde_expand_filename: No such user .' and the clone operation failed

Once I try to clone my git repository through SSH I get the message 'tilde_expand_filename: No such user .' and 'fatal: Could not read from remote repository'. The error message is not clear though.

like image 825
airin Avatar asked Dec 30 '14 15:12

airin


People also ask

How do I fix git clone not working?

If you have a problem cloning a repository, or using it once it has been created, check the following: Ensure that the user has gone through initial GitCentric login and has the correct username, email, and ssh. This should return a usage message that refers to the config-branch, config-repo, and ls-repo commands.

Why I Cannot clone a repository from GitHub?

If you're unable to clone a repository, check that: You can connect using HTTPS. For more information, see "HTTPS cloning errors." You have permission to access the repository you want to clone.

How do you clone a repository?

Clone a repository with VS Code Follow these instructions to clone your repository. If you don't have Visual Studio Code, download the application first. From the repository, select the Clone button. In the Clone this repository dialog, select the Clone in VS Code button.


1 Answers

I checked the configuration file located in the ssh folder ~/.ssh/ and noticed that for some reason the path to the IdentifyFile was incorrect ~./.ssh/id_rsa_mpk (with an additional dot after the tilde).

I just corrected the path by ~/.ssh/id_rsa_macpro, and the git clone command worked properly.

like image 108
airin Avatar answered Oct 03 '22 03:10

airin