RSSAmplifier

Damian Nicholson · Mar 1, 2026

Using 1Password as Your SSH Agent on macOS

0
Sign in to vote or save

Damian Nicholson · Damian Nicholson

1Password on laptop

If you use SSH regularly on macOS, configuring 1Password as your SSH agent is a nice upgrade. It keeps your private keys encrypted, avoids long-running agents loaded with keys, and requires you to explicitly approve each connection.

This post walks through the minimal setup.

  • Open 1Password
  • Go to Settings → Developer
  • Enable “Use the SSH agent”

That’s all that’s required on the 1Password side.

Add an SSH Key

You can either:

  • Generate a new SSH key directly in 1Password, or
  • Import an existing key you already use

The private key stays inside 1Password and is never written back to disk in plaintext.

Configure SSH to Use 1Password

Edit your SSH config:

# ~/.ssh/config
Host *
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

This tells OpenSSH to use 1Password’s agent socket instead of the default ssh-agent.

You don’t need to remove or disable the system agent — SSH will use the one specified here.

What It Looks Like in Practice

The next time you run something like ssh foo@bar.com 1Password will prompt you to approve the connection. Once approved, the SSH connection proceeds as normal.

1Password authorize ssh request prompt

This works well for Git operations, servers, and any other SSH-based tooling.

Read the original on damiannicholson.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.