Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Latest commit

 

History

History
32 lines (26 loc) · 833 Bytes

ssh-agent.md

File metadata and controls

32 lines (26 loc) · 833 Bytes

Using ssh-agent service

ssh-agent service allows adding multiple keys (including ones protected with a passphrase) to a single pool of ssh keys, which can be shared across multiple projects.

Required dsh version: 1.20.0+

Setup

  1. Make sure dsh version is 1.20.0 or higher.

  2. dsh reset ssh-agent (only necessary when updating from older versions).

  3. Add the following configuration option to the cli service in your projects docker-compose.yml file:

    For Compose file format version 1

    cli:
      ...
      volumes_from:
        - ssh-agent
      ...

    For Compose file format version 2

    cli:
      ...
      volumes_from:
        - container:ssh-agent
      ...
  4. Reset the cli container dsh reset cli.

  5. See dsh help ssh-agent for more usage information.