> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/1password/1password-ssh-agent.md).

# 1Password SSHエージェント

### **1Password SSHエージェント** <a href="#id-6eypyj7impfg" id="id-6eypyj7impfg"></a>

1Password SSHエージェントは、1PasswordにSaveしたSSH鍵を使用して、Git およびSSHワークフローとシームレスに統合します。GitおよびSSHクライアントを認証しますが、クライアントが秘密鍵を読み取ることはできません。

実際、あなたの秘密鍵は1Passwordアプリから外に出ることはありません。SSHエージェントは1PasswordにSaveされているSSH鍵を使用して動作しますが、あなたの同意なしに動作することはありません。1Passwordがロックされるまで、明示的に承認したSSHクライアントのみがSSH鍵を使用できます。

[1Password SSHエージェントをオンにして](https://developer.1password.com/docs/ssh/get-started/#step-3-turn-on-the-1password-ssh-agent)SSH[クライアントを設定する](https://developer.1password.com/docs/ssh/get-started/#step-4-configure-your-ssh-or-git-client)方法を紹介します。

### **必要条件** <a href="#mc1gzeo2as2l" id="mc1gzeo2as2l"></a>

Mac

* [1Passwordサブスクリプション](https://start.1password.com/sign-up/plan)
* [1Password for Mac](https://1password.com/downloads/mac)

💡ヒント

1Password SSHエージェントを使う際の最高のエクスペリエンスを実現するために、[Touch ID](https://support.1password.com/touch-id-mac/)または[Apple Watch](https://support.1password.com/)を設定して1Passwordのロックを解除し、SSH鍵要求を認証することができます。<br>

Windows

* [1Passwordサブスクリプション](https://start.1password.com/sign-up/plan)
* [1Password for Windows](https://1password.com/downloads/windows)
* [Microsoft OpenSSH](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview)

Linux

* [1Passwordサブスクリプション](https://start.1password.com/sign-up/plan)
* [Mac用1Password](https://1password.com/downloads/mac)

⚠️注意

1Password SSHエージェントは、1Passwordの[Flatpak](https://flatpak.org/)またはSnap Storeインストールでは動作しません。SSHエージェントを使うには、[1Password for Linux](https://support.1password.com/install-linux/)のインストールに別の方法を選択してください。

### &#x20;<a href="#ruxiiuwpxqip" id="ruxiiuwpxqip"></a>

### **設定** <a href="#wktprsil7djg" id="wktprsil7djg"></a>

デフォルトでは、1Password SSHエージェントは、1Passwordアカウントの組み込みの[Personal](https://support.1password.com/1password-glossary/#personal-vault)、[Private](https://support.1password.com/1password-glossary/#private-vault)、または[Employees保管庫](https://support.1password.com/1password-glossary/#employee-vault)内の全ての[適格な鍵](https://developer.1password.com/docs/ssh/agent/#eligible-keys)をSSHサーバーに提供できるようにします。[この設定は、SSH](https://developer.1password.com/docs/ssh/agent/#eligible-keys)[エージェントをオンにする](https://developer.1password.com/docs/ssh/get-started/#step-3-turn-on-the-1password-ssh-agent)と自動的に設定されます。

共有保管庫またはカスタム保管庫にSaveされた鍵でSSHエージェントを使う必要がある場合は、[SSHエージェント設定ファイル](https://developer.1password.com/docs/ssh/agent/config/)（ \~/.config/1Password/ssh/agent.toml）をCreateしてカスタマイズし、デフォルトのエージェント設定を上書きできます。

### **対象の鍵** <a href="#id-3eaz91dkv3vj" id="id-3eaz91dkv3vj"></a>

1Password SSHエージェントがSSH鍵で動作するには、1PasswordSSH鍵アイテムが次の必要条件を満たしている必要があります。

* （[Ed25519またはRAS鍵タイプ](https://developer.1password.com/docs/ssh/manage-keys/#supported-ssh-key-types)をサポートする）SSH Keyアイテムタイプを生Createされたか、インポートされたものであること。
* [SSHエージェントが1Passwordで使うように設定されている保管庫](https://developer.1password.com/docs/ssh/agent/#configuration)にSaveされていること。デフォルトでは、これはサインインしている1Passwordアカウントの[Personal](https://support.1password.com/1password-glossary/#personal-vault)、[Private](https://support.1password.com/1password-glossary/#private-vault)、または[Employees](https://support.1password.com/1password-glossary/#employee-vault)の保管庫です。
* アクティブなアイテム（アーカイブまたは削除されていない）であること。

これらの必要条件を満たす鍵は、SSH エージェントで認証に自動的に使用できるようになります。ただし、SSHクライアントが鍵を使うために行う[要求は](https://developer.1password.com/docs/ssh/agent/security/#authorization-model)、明示的に承認する必要があります。

エージェントが使用できる全ての鍵のリストを表示するには、[環境変数SSH\_AUTH\_SOCKを設定し](https://developer.1password.com/docs/ssh/get-started/#step-4-configure-your-ssh-or-git-client)て次のコマンドを実行します。

$ ssh-add -l


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://manual.dxable.com/1password/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.
