GitHub

Github で Permission denied (publickey). と言われた時

More than 3 years have passed since last update.

Error

$ git push -u origin master                                                                           
Permission denied (publickey).
fatal: Could not read from remote repository.

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

解決策

GitHub の ssh の設定 に公開 (~/.ssh/id_rsa.pub) を登録すればよい。