2
3

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 5 years have passed since last update.

gitでPermission denied (publickey)と言われた時の解決法

Posted at

npm installでローカルのモジュールをインストールしたいときにこんなエラーが出た

/usr/bin/git ls-remote -h -t ssh://git@github.com/hoge.git

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

exited with error code: 128
exit [ 1, true ]

ssh-add ~/.ssh/id_rsa

でいけた。

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?