DEV Community

Cover image for Unlocking your SSH key through OSX keychain
Michal Bryxí
Michal Bryxí

Posted on

1

Unlocking your SSH key through OSX keychain

The problem

Using passphrases for SSH keys is a very good idea, but since UX is inherent part of security I would advise on adding your SSH key to the ssh-agent to prevent password re-type fatigue & mishaps.

The solution

Follow along the documents above or try this shortened version:

  1. Add following line to your ~/.zshrc:
ssh-add --apple-use-keychain ~/.ssh/id_rsa 2> /dev/null
Enter fullscreen mode Exit fullscreen mode
  1. Add following lines to yours ~/.ssh/config:
Host *
    UseKeychain yes
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_rsa
Enter fullscreen mode Exit fullscreen mode

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay