LoginSignup
19

More than 5 years have passed since last update.

macOS Sierra で ssh-agent の鍵をすぐ忘れられちゃうのめんどくさいんじゃこらーの対処法

Posted at

Sierra 以前では、ssh-agent を使う時には以下のようにすればオッケーでした。

$ ssh-add -K ~/.ssh/id_rsa

Sierra では、 ~/.ssh/config に以下のように追加してください。

Host *
   AddKeysToAgent yes
   UseKeychain yes
   IdentityFile ~/.ssh/id_rsa

以上!

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
19