Fixing SSH key: [email protected]: Permission denied (public key) with GitHub

Once your SSH key has been generated on the server, you should add it to the SSH agent:

$ eval "$(ssh-agent -s)"
> Agent pid 59566
$ ssh-add ~/.ssh/yourKeyName

SSH-agent is a program that manages SSH keys for secure authentication when logging into remote servers. When you add a new key to ssh-agent, you are enabling it to use that key to authenticate your connection to a remote server without having to enter your passphrase each time.

 

Leave a Comment

Your email address will not be published. Required fields are marked *