LoginSignup
0
1

More than 3 years have passed since last update.

VS Codeでgithubにプッシュする際Permission denied (publickey)エラーが出る場合の対策

Posted at
  1. まずは、ここでちゃんとSSH Keyを生成して然るべき場所にセットしておくこと。

    Generating a new SSH key and adding it to the ssh-agent

  2. ~/.ssh/config の設定を以下の設定する。

.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa

これでVS CodeからエラーなくGitHub.comにPushできるようになった。

0
1
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
0
1