# 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="/files/dLP36LIzmsgNANBFfUto" 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="/files/WeaDG9bgqR2g48uHMath" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="/files/f5BIwAEOpCmvNru5K7K2" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getmedis.com/integrations/1password-ssh-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
