My setup originates with Laravel Forge connecting to various GitHub repos. I’ve been running a dozen sites without issue for about 6 months. All of a sudden, yesterday I started getting this permission denied (publickey) error in the DigitalOcean Console when I run any
git push or
git pull command.
I’ve been through these articles:
They all recommend roughly the same solution:
sudo nano /etc/ssh/sshd_config
PasswordAuthentication yeswhich I shouldn’t need to do since this is SSH, not password auth
PublickeyAuthentication yesor in my case, uncomment it
sudo service sshd reload
I’ve tried all these steps multiple times but I still can’t get reconnected to my git repositories.
I’ve also reviewed the Forge SSH Keys instructions and confirmed the server key provided is the correct server key in
Any additional ideas for 2020? I’m running Ubuntu 18.04.3
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.