LoginSignup
5
2

More than 5 years have passed since last update.

macOS SierraにアップデートしたらgithubにアクセスするたびにSSHのパスワードを聞かれる

Last updated at Posted at 2017-03-13

現象

macOS Sierraにアップデートしてから、 push のときも pull のときもgithubにアクセスするたびに、以下のようにパスワード聞かれる。

bash
$ ssh -T git@github.com
Enter passphrase for key '/Users/hoge/(内緒)': 

解決方法

~/.ssh/config の先頭に UseKeychain yes を記述した。

↓こんな感じ

~/.ssh/config
UseKeychain yes

Host github
  HostName github.com
  IdentityFile (内緒)
  User git

(内緒)のところは鍵が置いてあるパスです。

参考にした記事

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