0
0

More than 1 year has passed since last update.

IntelliJ IDEA で git remote 操作ができない

Last updated at Posted at 2021-11-10

状態

  • github を ssh 経由で使用している。
  • IntelliJ IDEA 組み込みの git ui にてリモート関連操作 (push, pull等) を行うと次のようにエラーが出る。
    Update Failed
    CreateProcessW failed error:193
    ssh_askpass: posix_spawnp: Unknown error
    git@github.com: Permission denied (publickey).
    Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
  • IntelliJ IDEA 組み込みの git ui にてローカルの範囲の操作 (commit, switch, branch等) はできる。
  • ターミナルからのリモート関連操作はできる。

原因

OS の SSH-AGENT に SSH 鍵が登録されていない。

対応

ssh-add コマンドで鍵を SSH-AGENT に登録しましょう。

PS C:\Users\hoge> ssh-add.exe   # 引数なしの場合 .ssh/id_rsa をデフォルトで指してくれるようです。
Enter passphrase for C:\Users\hoge/.ssh/id_rsa:
Identity added: C:\Users\hoge/.ssh/id_rsa (hoge@コンピュータ名)

参考

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