I received the following message when accessing my Git repo:
git clone firstname.lastname@example.org: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 email@example.com
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