0
1

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.

WSL2に切り替えたけど、Gitが「Permission denied (publickey).」する時

Posted at

現象

WSL2のUbuntuからGithubにSSH接続を試みるも。。。?

$ ssh -T git@github.com
git@github.com: Permission denied (publickey).

Username/Password入力しても、
秘密鍵を作成して、githubに登録しても、
~/.ssh/configに接続情報設定しても、

git@github.com: Permission denied (publickey).

対象

👆WSL2を使用せずにDockerを使用していたが、 WSL2に切り替えたユーザー

解決策

WSL2のUbuntuで👇

$ git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?