# 1Password SSH agent

Medis officially supports the [1Password SSH agent](https://developer.1password.com/docs/ssh/agent/), enabling you to manage all your SSH secrets conveniently in one location.

{% hint style="info" %}
Please note that due to Apple's sandbox restrictions, only Medis versions downloaded from the [official website](https://getmedis.com/) support this feature.

Do not hesitate to contact us if you require further assistance.
{% endhint %}

To configure the integration of Medis with 1Password, follow these steps:

## Update SSH Config

Configure the 1Password SSH agent in your SSH config file by referring to [1Password's SSH Configuration Guide](https://developer.1password.com/docs/ssh/get-started/#step-4-configure-your-ssh-or-git-client) and adding the following:

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

to your `~/.ssh/config`.

## Configuring Medis to Use SSH Configuration

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2F3bkxYG2uBBRRrotWAqtV%2FCleanShot%202023-12-30%20at%2015.09.05%402x.png?alt=media&#x26;token=54b2ce88-ce32-42b5-9293-e15d4d7f9446" alt="" width="375"><figcaption><p>SSH panel of Medis settings</p></figcaption></figure>

1. Open "Settings..." in Medis
2. Switch to the SSH panel
3. Add your SSH config file so Medis can adhere to the. desired configurations

## Configuring Medis Connection

Once the above steps are completed, Medis can utilize the 1Password SSH agent for your connections that have SSH tunnel enabled. Here's an example of what a typical setup might look like:

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FtoSVccjNIZqmJzwTsHuE%2FCleanShot%202023-12-30%20at%2015.12.22%402x.png?alt=media&#x26;token=5e025ae7-ce6e-4f5b-9bcd-ba80336822f0" alt="" width="375"><figcaption></figcaption></figure>

When establishing a connection, 1Password will prompt you for SSH key approval as follows:

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FuIih9rbI8lXQFDQ076GP%2FCleanShot%202023-12-30%20at%2015.13.05%402x.png?alt=media&#x26;token=168a023d-66b0-49e6-af0b-d68d848e29d9" alt="" width="375"><figcaption></figcaption></figure>
