Git error  

Problem: When are try to push the git are get an error: fatal: Could not read from remote repository.

Solution: We necessary generate or regenerate SSH keys on the remote host.

Step 1. Go to home user directory (usually, it available after successfully ssh connected) and check the availability file located to /home/username/.ssh/ . If file exist go to step 2, else creating an ssh pair for user authentication use command:


Step 2: Open file in hidden ssh folder:

vi .ssh/

Copy contain of the file to Bitbucket account – Settings – SSH Keys. Create new key and paste contain of file, after then save it. That’s all!

Git push failed. Fatal: Could not read from remote repository.
Leave Comment

Your email address will not be published. Required fields are marked *