---
title: 【Keeper Commander】KeeperでSSH鍵を管理＆SSH接続をしてみた | Nextmode Blog
description: Keeperを使った安全なSSH鍵の管理と接続方法を紹介します。
image: https://info.nextmode.co.jp/hubfs/%E3%83%96%E3%83%AD%E3%82%B0%EF%BC%BF%E3%82%AD%E3%83%BC%E3%83%93%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB/Keeper_Blog.png
---

[![nextmode blog](https://info.nextmode.co.jp/hubfs/raw_assets/public/NextMode_Theme/nextmode%20blog.png)](https://info.nextmode.co.jp/blog)

[ホワイトペーパー](https://info.nextmode.co.jp/white-paper/) [資料請求](https://info.nextmode.co.jp/request/) [お問い合わせ](https://nextmode.co.jp/contact/)

- [会社TOP](https://nextmode.co.jp/)
- [生成AIセキュリティ](https://nextmode.co.jp/services/ai/security/)
- [SaaSライセンス＆サポート](https://nextmode.co.jp/services/saas/)
  
    - [Oktaライセンス＆サポート](https://nextmode.co.jp/services/saas/okta/)
    - [Netskopeライセンス＆サポート](https://nextmode.co.jp/services/saas/netskope/)
    - [Notionライセンス＆サポート](https://nextmode.co.jp/services/saas/notion/)
    - [Asanaライセンス＆サポート](https://nextmode.co.jp/services/saas/asana/)
    - [SysCloudライセンス＆サポート](https://nextmode.co.jp/services/saas/syscloud/)
    - [CrowdStrikeライセンス＆サポート](https://nextmode.co.jp/services/saas/crowdstrike/)
- [AWS総合支援](https://nextmode.co.jp/services/aws/)
  
    - [AWS導入コンサル・構築](https://nextmode.co.jp/services/aws_consulting/)
    - [AWS運用・保守代行](https://nextmode.co.jp/services/aws_operation/)
- [導入事例](https://nextmode.co.jp/casestudy/)
- [会社情報](https://nextmode.co.jp/company/)
- [セミナー](https://info.nextmode.co.jp/seminar/)
- [ブログ](https://info.nextmode.co.jp/blog)

[![YouTube](https://nextmode.co.jp/assets/images/common/icon_youtube.svg)](https://www.youtube.com/@nextmode) <https://x.com/Nextmode_Inc>

目次

 2024/09/17 13:27

# 【Keeper Commander】KeeperでSSH鍵を管理＆SSH接続をしてみた

[» Keeper](https://info.nextmode.co.jp/blog/tag/keeper)

[![南栄樹](https://app.hubspot.com/settings/avatar/741dedfe97a942cceb7916549a7401c6) 南栄樹](https://info.nextmode.co.jp/blog/author/minami-eiki)

共有： [facebook-f icon](http://www.facebook.com/share.php?u=https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent) [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent) [Twitter icon](https://twitter.com/intent/tweet?url=https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent) [pinterest-p icon](http://pinterest.com/pin/create/link/?url=https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent) [envelope icon](mailto:?body=https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent)

## はじめに

---

[ネクストモード](https://nextmode.co.jp/)の南です。

サーバ接続用のSSH鍵をローカルPCに保存している方は多いと思います。（私もです）

Keeper Commanderを使うと、コマンドラインからKeeperに保存したSSH鍵へのアクセスとSSH接続を行うことができ、  
安全な鍵の管理とアクセスを実現できます。  
実際に検証をしてみましたので、本ブログで手順を紹介していきます。

## 手順

---

手順は以下の通りです。

1. KeeperにSSH鍵を保存
2. Keeper commanderをインストール
3. Keeper Commander CLIにログイン
4. Keeperに保存している鍵にアクセスしてSSH接続

 

### 1. KeeperにSSH鍵を保存

まずはKeeperにSSH鍵を保存していきます。

- Keeperを起動し、新規作成→記録をクリック  
  ![KeeperにSSH鍵を保存1](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%208.png?width=351&height=270&name=keeper-commander-ssh-agent%208.png)
- 記録タイプでSSH鍵を選択し、**次へ**をクリック  
  ![KeeperにSSH鍵を保存2](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%209.png?width=351&height=228&name=keeper-commander-ssh-agent%209.png)
- **秘密鍵**にSSH用の秘密鍵をペーストし、**ログイン**、**ホスト名またはIPアドレス**、**ポート**を入力して**保存**をクリック  
  ![KeeperにSSH鍵を保存3](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%2010-1.png?width=349&height=557&name=keeper-commander-ssh-agent%2010-1.png)

### 2. Keeper Commanderをインストール

自端末にKeeper Commanderをインストールしていきます。  
インストール手順は以下の公式のマニュアルをご確認ください。

- [Installation on Mac](https://docs.keeper.io/en/v/secrets-manager/commander-cli/commander-installation-setup/installation-on-mac)
- [Installation on Windows](https://docs.keeper.io/en/v/secrets-manager/commander-cli/commander-installation-setup/installation-on-windows)

### 3. Keeper Commander CLIにログイン

ターミナルや接続ツールからSSHエージェントを使用できるように、環境変数SSH\_AUTH\_SOCKを設定します。

- $ export SSH\_AUTH\_SOCK=~/.keeper/\[アカウントのメールアドレス\].ssh\_agent

下記コマンドを実行してKeeper Shellを起動します。

- $ keeper shell  
  ![Keeper Commander CLIにログイン1](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent_1.png?width=602&height=276&name=keeper-commander-ssh-agent_1.png)

プロンプトにNot logged inと表示さます。  
loginと入力し、「User(Email)」にアカウントのメールアドレスを入力します。

![Keeper Commander CLIにログイン2](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%202.png?width=494&height=68&name=keeper-commander-ssh-agent%202.png)

以下のパターンでのログインができるため、環境に応じた方法でログインします。

- マスターパスワード
- 2要素認証
- SSO

各ログイン方法の詳細については以下をご参考ください。

- [Keeper Commander CLIにログインして使用する方法](https://docs.keeper.io/en/v/secrets-manager/commander-cli/commander-installation-setup/logging-in)

今回の環境ではSSOを有効化しているので、以下のようにSSOログインを促す画面に遷移しました。

![Keeper Commander CLIにログイン3](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%203.png?width=701&height=221&name=keeper-commander-ssh-agent%203.png)

ログインできるとプロンプトがMy Vaultに変わります。

![Keeper Commander CLIにログイン4](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%2011.png?width=351&height=69&name=keeper-commander-ssh-agent%2011.png)

### 4. Keeperに保存している鍵にアクセスしてSSH接続

ssh-agent startを実行し、1.の手順で登録したSSH鍵をロードします。

- $ ssh-agent start  
  ![Keeperに保存している鍵にアクセスしてSSH接続1](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent_4.png?width=695&height=207&name=keeper-commander-ssh-agent_4.png)

sshコマンドを実行し、登録したSSH鍵のUIDを確認します。

- $ ssh  
  ![Keeperに保存している鍵にアクセスしてSSH接続2](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%205.png?width=697&height=116&name=keeper-commander-ssh-agent%205.png)

sshコマンドでUIDを指定すると接続することができます。

- $ ssh \[UID\]  
  ![Keeperに保存している鍵にアクセスしてSSH接続3](https://info.nextmode.co.jp/hs-fs/hubfs/keeper-commander-ssh-agent%207.png?width=604&height=202&name=keeper-commander-ssh-agent%207.png)

sshコマンドではオプションも利用することができます。  
例えばポートフォワーディングをして接続したい場合は以下のコマンドになります。

- $ ssh \[UID\] -L \[client port\]:\[IPアドレス\]:\[remote port\]

## おわりに

---

今回はKeeper Commanderを使ったSSH接続手順を紹介しました。  
SSH鍵の管理をローカルPCからKeeperに変更することで、安全な鍵の管理とアクセスを実現できます。  
Keeperをご利用されている場合は是非実施していただければと思います。

また、本ブログの執筆にあたっては佐藤カズさんにご協力をいただきました。  
この場を借りて御礼申し上げます。

[![新規CTA](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/20481958/0a17ddba-0e2a-4cfa-b3f6-4d30c0a91bf1.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/20481958/0a17ddba-0e2a-4cfa-b3f6-4d30c0a91bf1)

### 関連記事

[![【Keeper】はじめの一歩：最初にやるべき5つの設定](https://info.nextmode.co.jp/hubfs/%E3%83%96%E3%83%AD%E3%82%B0%EF%BC%BF%E3%82%AD%E3%83%BC%E3%83%93%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB/Keeper_Blog.png) 【Keeper】はじめの一歩：最初にやるべき5つの設定 ![](https://info.nextmode.co.jp/hubfs/kusumi.png) kusumin 2026/09/15](https://info.nextmode.co.jp/blog/keeper-getting-started-guide)

[![【Netskope】社内を可視化した後は何をすればいいの？可視化データから「制御の線引き」を決める方法](https://info.nextmode.co.jp/hubfs/Netskope_Blog-Oct-23-2023-04-49-25-5006-AM.png) 【Netskope】社内を可視化した後は何をすればいいの？可視化データから「制御の線引き」を決める方法 ![](https://info.nextmode.co.jp/hubfs/%E5%AF%8C%E5%B7%9D%E3%81%95%E3%82%93.jpg) tommy 2026/08/26](https://info.nextmode.co.jp/blog/how-to-use-visualized-data-to-define-control-boundaries)

[![【Oktane26】セッション：Okta Workflows 顧客事例と今後のロードマップ](https://info.nextmode.co.jp/hubfs/%E3%83%96%E3%83%AD%E3%82%B0%EF%BC%BF%E3%82%AD%E3%83%BC%E3%83%93%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB/oktane26.png) 【Oktane26】セッション：Okta Workflows 顧客事例と今後のロードマップ ![](https://info.nextmode.co.jp/hubfs/kusumi.png) kusumin 2026/09/24](https://info.nextmode.co.jp/blog/oktane26-workflows-flowcase)

### Category

[» 技術](https://info.nextmode.co.jp/blog/tag/技術) [» Okta](https://info.nextmode.co.jp/blog/tag/okta) [» Notion](https://info.nextmode.co.jp/blog/tag/notion) [» イベントレポート](https://info.nextmode.co.jp/blog/tag/イベントレポート) [» Netskope](https://info.nextmode.co.jp/blog/tag/netskope) [» CrowdStrike](https://info.nextmode.co.jp/blog/tag/crowdstrike) [» Notion AI](https://info.nextmode.co.jp/blog/tag/notion-ai) [» AWS](https://info.nextmode.co.jp/blog/tag/aws) [» Asana](https://info.nextmode.co.jp/blog/tag/asana) [» カルチャー](https://info.nextmode.co.jp/blog/tag/カルチャー) [» ワーケーション](https://info.nextmode.co.jp/blog/tag/ワーケーション) [» 生成AIセキュリティ対策シリーズ](https://info.nextmode.co.jp/blog/tag/生成aiセキュリティ対策シリーズ) [» Oktane25](https://info.nextmode.co.jp/blog/tag/oktane25) [» SaaS](https://info.nextmode.co.jp/blog/tag/saas) [» re:Invent](https://info.nextmode.co.jp/blog/tag/reinvent) [» AI](https://info.nextmode.co.jp/blog/tag/ai) [» リモートワーク](https://info.nextmode.co.jp/blog/tag/リモートワーク) [» Keeper](https://info.nextmode.co.jp/blog/tag/keeper) [» ネクストモードアドベントカレンダー2024](https://info.nextmode.co.jp/blog/tag/ネクストモードアドベントカレンダー2024) [» Oktane24](https://info.nextmode.co.jp/blog/tag/oktane24) [» Oktane23](https://info.nextmode.co.jp/blog/tag/oktane23) [» Asana AI](https://info.nextmode.co.jp/blog/tag/asana-ai) [» Slack](https://info.nextmode.co.jp/blog/tag/slack) [» Oktane26](https://info.nextmode.co.jp/blog/tag/oktane26) [» OIGシリーズ](https://info.nextmode.co.jp/blog/tag/oigシリーズ) [» その他](https://info.nextmode.co.jp/blog/tag/その他) [» 脱Excelシリーズ](https://info.nextmode.co.jp/blog/tag/脱excelシリーズ) [» Oktane22](https://info.nextmode.co.jp/blog/tag/oktane22) [» SysCloud](https://info.nextmode.co.jp/blog/tag/syscloud) [» Google](https://info.nextmode.co.jp/blog/tag/google) [» HubSpot](https://info.nextmode.co.jp/blog/tag/hubspot) [» Zapier](https://info.nextmode.co.jp/blog/tag/zapier) [» Azure AD](https://info.nextmode.co.jp/blog/tag/azure-ad) [» Entra ID](https://info.nextmode.co.jp/blog/tag/entra-id) [» Googleドライブ](https://info.nextmode.co.jp/blog/tag/googleドライブ) [» SentinelOne](https://info.nextmode.co.jp/blog/tag/sentinelone) [» ゼロトラスト](https://info.nextmode.co.jp/blog/tag/ゼロトラスト) [» DocuSign](https://info.nextmode.co.jp/blog/tag/docusign) [» Jamf](https://info.nextmode.co.jp/blog/tag/jamf) [» セキュリティ対策](https://info.nextmode.co.jp/blog/tag/セキュリティ対策) [» トラブルシューティング](https://info.nextmode.co.jp/blog/tag/トラブルシューティング) [» 利用者目線](https://info.nextmode.co.jp/blog/tag/利用者目線) [» 運用](https://info.nextmode.co.jp/blog/tag/運用) [» GitHub](https://info.nextmode.co.jp/blog/tag/github) [» GitHub Gist](https://info.nextmode.co.jp/blog/tag/github-gist) [» JOUG](https://info.nextmode.co.jp/blog/tag/joug) [» Notion Calendar](https://info.nextmode.co.jp/blog/tag/notion-calendar) [» Proflly](https://info.nextmode.co.jp/blog/tag/proflly) [» kintone](https://info.nextmode.co.jp/blog/tag/kintone)

[![ネクストモード株式会社](https://nextmode.co.jp/assets/images/common/logo_white.svg)](https://nextmode.co.jp/)

Service

- [生成AIセキュリティ](https://nextmode.co.jp/services/ai/security/)
- [SaaSライセンス＆サポート](https://nextmode.co.jp/services/saas/) 
    - [Oktaライセンス＆サポート](https://nextmode.co.jp/services/saas/okta/)
    - [Netskopeライセンス＆サポート](https://nextmode.co.jp/services/saas/netskope/)
    - [Notionライセンス＆サポート](https://nextmode.co.jp/services/saas/notion/)
    - [Asanaライセンス＆サポート](https://nextmode.co.jp/services/saas/asana/)
    - [SysCloudライセンス＆サポート](https://nextmode.co.jp/services/saas/syscloud/)
    - [CrowdStrikeライセンス＆サポート](https://nextmode.co.jp/services/saas/crowdstrike/)
    - [Keeperライセンス＆サポート](https://nextmode.co.jp/services/saas/keeper/)
- [AWS総合支援](https://nextmode.co.jp/services/aws/) 
    - [AWS導入コンサル・構築](https://nextmode.co.jp/services/aws_consulting/)
    - [AWS運用・保守代行](https://nextmode.co.jp/services/aws_operation/)

Company

- [会社情報](https://nextmode.co.jp/company/)
- [サービス一覧](https://nextmode.co.jp/services/)
- [導入事例](https://nextmode.co.jp/casestudy/)
- [お知らせ](https://nextmode.co.jp/news/)
- [サステナビリティ](https://nextmode.co.jp/sustainability/)
- [採用](https://nextmode.co.jp/recruit/)
- [私たちの働き方](https://nextmode.co.jp/workstyle/)
- [カルチャー](https://nextmode.co.jp/culture/)

Contact

- [お問い合わせ](https://nextmode.co.jp/contact/)
- [資料請求](https://info.nextmode.co.jp/request/)

Media

- [セミナー](https://info.nextmode.co.jp/seminar)
- [ブログ](https://info.nextmode.co.jp/blog)
- [ホワイトペーパー](https://info.nextmode.co.jp/white-paper/)

- [![ネクストモード公式YouTubeチャンネル](https://nextmode.co.jp/assets/images/common/icon_youtube.svg)](https://www.youtube.com/channel/UCeW8ocoe9C3E0GOINh167MA)
- [![ネクストモード公式Xアカウント](https://nextmode.co.jp/assets/images/common/icon_x.svg)](https://twitter.com/Nextmode_Inc)

[English](https://nextmode.co.jp/en/)

- [NTTグループカスタマーハラスメント基本方針](https://group.ntt/jp/group/customer_harassment/)
- [就活ハラスメント防止方針](https://docs.nextmode.co.jp/nextmode_recruit_harassment.pdf)

- 運用アシスタント利用規約([AWS](https://docs.nextmode.co.jp/nextmode-unyo-assistant-aws-terms-of-use.pdf)/[Azure](https://docs.nextmode.co.jp/nextmode-unyo-assistant-azure-terms-of-use.pdf))
- [日中運用支援定型約款](https://docs.nextmode.co.jp/nextmode-nittyu-unyo-shien-terms-of-use.pdf)
- [定型約款](https://docs.nextmode.co.jp/nextmode-standard-contracts.pdf)

[プライバシーポリシー](https://nextmode.co.jp/company/privacy.html)

Copyright(c) Nextmode, Inc.

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "南栄樹",
    "url" : "https://info.nextmode.co.jp/blog/author/minami-eiki"
  },
  "dateModified" : "2024-09-17T04:27:47.947Z",
  "datePublished" : "2024-09-17T04:27:47.000Z",
  "headline" : "【Keeper Commander】KeeperでSSH鍵を管理＆SSH接続をしてみた | Nextmode Blog",
  "image" : [ "https://info.nextmode.co.jp/hubfs/%E3%83%96%E3%83%AD%E3%82%B0%EF%BC%BF%E3%82%AD%E3%83%BC%E3%83%93%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB/Keeper_Blog.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://info.nextmode.co.jp/blog/keeper-commander-ssh-agent",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://info.nextmode.co.jp/hubfs/nm_l_color.png"
    },
    "name" : "ネクストモード株式会社"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://nextmode.co.jp/#organization",
  "@type" : "Organization",
  "alternateName" : "Nextmode, Inc.",
  "logo" : "https://nextmode.co.jp/assets/images/common/logo_white.svg",
  "name" : "ネクストモード株式会社",
  "sameAs" : [ "https://www.youtube.com/channel/UCeW8ocoe9C3E0GOINh167MA", "https://twitter.com/Nextmode_Inc", "https://info.nextmode.co.jp/" ],
  "url" : "https://nextmode.co.jp/"
}
```