以下の内容はhttps://yohei-a.hatenablog.jp/entry/20220529/1653810219より取得しました。


GitHub から clone しようとすると、"Permission denied (publickey). fatal: Could not read from remote repository." と怒られる

事象

  • GitHub から clone しようとすると、"Permission denied (publickey). fatal: Could not read from remote repository." と怒られる。
% git clone git@github.com:yoheia/redshift_concurrent_query_executer.git
Cloning into 'redshift_concurrent_query_executer'...
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.

原因

  • マシンをリプレースして、~/.ssh/config に以下を書いてなかった。
Host github.com
  User git
  Port 22
  Hostname github.com
  IdentityFile ~/.ssh/id_rsa
  TCPKeepAlive yes
  IdentitiesOnly yes
  • GitHubSSH の Public Key を登録してなかった。
    • ~/.ssh/id_rsa.pub の ssh-rsa から メールアドレスより前までを登録してなかった。



以上の内容はhttps://yohei-a.hatenablog.jp/entry/20220529/1653810219より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14