. Advertisement .
..3..
. Advertisement .
..4..
The error:
$ git push website +master:refs/heads/master
Bill@***.com's password:
Connection closed by 198.91.80.3
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
occurred when I set git up with http://danielmiessler.com/study/git/#website to manage my site. I’ve tried to fix it since some days but not resolved it yet. Can someone suggest a relevant solution to fix fatal could not read from remote repository issue? Much appreciate of your support.
You could simply run this command:
where [email protected] is the url to your hosting of repository with your account name and your-repository.git is your repository name.
Most likely, your ssh key was removed from ssh agents
where id_rsa refers to a ssh-key associated with git repo
It is possible to get a
Could not open a connection to your authentication agent.
error. To resolve this, you will need to restart the agent by:The username that SSH should send is part of the URL for your remote. The username should be followed by @ before the remote hostname.
git remote set-url website abc@***.com:path/to/repo