cloudchamber's blog

Github SSH Connection Error - public key failed

Even after adding ssh key to github settings, sometimes remote server would give permission denied error. In this case, it may be a problem with ssh-agent. In this case, you should first check if ssh-add has valid credentials.

$ ssh-add -l

If you do not get the expected result, try adding specific ssh-key information by following instructions.

$ ssh-add <PRIVATE_KEY_PATH>