• Register
0 votes
77 views

Problem :

I am unable to clone my Git repository and getting below error:

​/c/Projects $ git clone http://stage.abc.com:10088/pqr http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or directory



​

How can I fix the above error?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

It seems to me like the permissions issue and not the Windows 7 issue.

Your ssh key is not authorized so you are getting - Permission denied (publickey).

You need to create the public ssh key and then ask your administrator of your Git repository to add your ssh public key

OR

For the people those have come here and are just trying to get their repository and who don't care about the protocol name (ssh / https), those might just want to use the https instead of the ssh (if it's just supported).

So for e.g. you can use below command.

git clone https://github.com/%REPOSITORYFOLDER%/%REPOSITORYNAME%.git

Instead of the below command.

git clone git@github.com:%REPOSITORYFOLDER%/%REPOSITORYNAME%.git

 OR

 If you are still facing the issue around the access even after creating the SSH and adding it in the Bitbucket account or wherever you wanted to, you need to write the following in terminal on the GitBash, OSX or Linux:

# Lists already added identities (‘ssh keys’)
ssh-add -l

Then, if you still don't see your key listed then you can add it with the following

# Add a new realname
ssh-add ~/.ssh/ realname

This simply worked for me.

9 7 4
38,600 points

Related questions

1 vote
1 answer 129 views
129 views
Problem : I am unable to clone my Git repository, and getting below error: /c/Projects $ git clone http://stage.abc.com:10088/pqr http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or dir Please let me know any pointers to resolve my error.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 2 views
2 views
Problem: Icould not read from remote repository git clone and getting the above eror . can somebody help?
asked 2 days ago Sana8989 7.7k points
1 vote
1 answer 3 views
3 views
Problem: How to fix this error : permission denied (publickey). fatal: could not read from remote repository.
asked Apr 3 MUHAMMAD MUNEEB 80k points
0 votes
1 answer 21 views
21 views
Problem: *Emails are not allowed*: permission denied (publickey). fatal: could not read from remote repository.
asked Feb 23 Muneeb Saadii 125k points
0 votes
1 answer 2 views
2 views
Problem: I am stuck with this ...host key verification failed. fatal: could not read from remote repository. Please help me that how to deal with this?
asked 2 days ago ashik 10.6k points
1 vote
1 answer 2 views
2 views
Problem: Please help me. How can I solve it? permission denied publickey fatal the remote end hung up unexpectedly
asked Apr 3 MUHAMMAD MUNEEB 80k points
0 votes
2 answers 174 views
174 views
Problem : When ever I try to push to a shared git remote I get the following error remote: error: insufficient permission for adding an object to repository database ./objects
asked Nov 16, 2019 peterlaw 6.9k points
0 votes
1 answer 21 views
21 views
Problem : how can i deal with this situation and fix it ? Fatal: could not read username for 'https://github.com': no such device or address.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 34 views
34 views
Problem: why this happened with me : Fatal: could not read username for 'https://github.com': terminal prompts disabled.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.9K views
2.9K views
Problem : I have the below problem when I just try to pull code, using my GIT Bash on windows Even after adding/removing the origin I am still facing the same error as below. Fatal: could not read Username for 'https://github.com': No such file or directory
asked Dec 19, 2019 alecxe 7.5k points