3
5

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 5 years have passed since last update.

GitHubにSSH接続してるのに毎回パスワードを要求される(Windows)

3
Posted at

自分のWin10 + GitBashでGitHubにPUSHとかすると、SSH接続なのに毎回パスワード聞かれて面倒くさい。

回避方法

  1. ~/.bash_profileを開く
  2. ファイルの最後に以下の2行を追加
eval `ssh-agent`
ssh-add
  1. GitBashを起動。この時にパスワード入力が要求される。以降はパスワード入力不要となる。
    image.png

参考にさせて頂きました。
https://takanosho.wordpress.com/2013/01/11/input-ssh-key-passphrase-only-once-on-git-bash/

ありがとうございます。
一つ賢くなりました。

3
5
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
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?