Posted at

Githubのsshで何故かPermission denied (publickey)となる場合の設定メモ

More than 3 years have passed since last update.


Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


$ eval "$(ssh-agent -s)"

$ ssh-add ~/.ssh/id_rsa # github用のssh-keyへのパス

github Permission denied って急に言われました(´・ω・`) - rochefort's blog

Generating a new SSH key and adding it to the ssh-agent - User Documentation