LoginSignup
1
1

More than 3 years have passed since last update.

WSL2 の Ubuntu 18.04 で ssh-agent がうまく起動できないとき

Posted at

前提

WSL2 Ubuntu 18.04
Git にコミットするときの秘密鍵のパスワード入力をスキップしたくて ssh-agent に登録したかった。

発生した問題

よくある


eval `ssh-agent`

ssh-agent を起動しようとしても


Could not open a connection to your authentication agent.

となる。

解決方法

shell を指定する


ssh-agent fish

でいけた。

ssh-agent zsh
ssh-agent bash

もいけた。

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