githubからcloneするときにPermission denied (publickey)エラーが発生する | ハックノート

githubに公開鍵を登録しましたが、以下のようなエラーが出ました。 エラー内容 ``` 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` // ssh-agent を起動 $ ssh-add ~…