**Quick Start:** Getting a "github.com: Permission denied (publickey)" error? This guide shows you exactly how to fix SSH key authentication issues with GitHub.

If you receive this message when attempting to clone a repository.

**git@github.com: Permission denied (publickey)**

_This article assumes you're using a Unix-based system like Linux, macOS, or Windows Subsystem for Linux._

Try the following:

```sh
eval "$(ssh-agent -s)"
# This command should output: "Agent pid [process pid]"

# Add your ~/.ssh/id_rsa.pub file to your GitHub keys if it's not already there
ssh-add ~/.ssh/id_rsa
# The command should output "Identity Added"
```