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 id_rsa.pub located to /home/username/.ssh/ . If file exist go to step 2, else creating an ssh pair for user authentication use command:

ssh-keygen

Step 2: Open file id_rsa.pub in hidden ssh folder:

vi .ssh/id_rsa.pub

Copy contain of the file to Bitbucket account – Settings – SSH Keys. Create new key and paste contain of file id_rsa.pub, 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.