1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Load key "/Users/sasakiyuuya/.ssh/github": invalid format git@github.com: Permission denied (publickey).

Posted at

WARNING: UNPROTECTED PRIVATE KEY FILE!

上記のエラーは無くなったが次なるエラーが発生。

Load key "/Users/sasakiyuuya/.ssh/github": invalid format
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

何やら形式が無効でアクセスが拒否されたのことでリモートリポジトリから読み取ることができない、

よくわからなくなったので、下記サイトから一回リセットしてやり直し

鍵を生成して、Githubに貼り付ける。

それでも下記ようなエラー発生

no such identity: /Users/sasakiyuuya/.ssh/github: No such file or directory

下記のサイトの参考
https://qiita.com/takuyanin/items/c6a097028a837052c90c

④の~/.ssh/config

Host github
    HostName github.com
    IdentityFile ~/.ssh/github_id_rsa
    User git

上記のHostName github.comが抜けていたので、追加したらエラー解消した。

あー長かった。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?