I received the following message when accessing my Git repo:
git clone email@example.com:patelc75/gitrepo.git
Initialized empty Git repository in /home/webuser/.ssh/gitrepo/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Then I did the following to debug
Use SSH With Verbose Output To Debug:
ssh -v firstname.lastname@example.org
And found out the permissions of the ssh key was the problem. The following fixed the problem.
Modify Permissions On Public SSH Key:
sudo chmod 644 id_rsa.pub