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

fatal: Could not read from remote repository.

Generating a new SSH key

In terminal, $ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Press enter for all prompts

Adding your SSH key to the ssh-agent

Open your ~/.ssh/config file, then modify the file, replacing ~/.ssh/id_rsa

Adding a new SSH key to your GitHub account

Add SSH key to GitHub.

https://help.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account

I am trying to be friends with programming.