いろいろ備忘録

雑記です。

git cloneで失敗する時 windows

Warning: Permanently added the RSA host key for IP address 'IPアドレス' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

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

とエラーが出た。

Windowsでは、ユーザフォルダ/.ssh/id_rsa.pubが公開鍵のファイルなので、これをGitHub側に設定(コピペ)する。