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+
-
Make sure dsh version is
1.20.0
or higher. -
dsh reset ssh-agent
(only necessary when updating from older versions) -
Add the following configuration option to the
cli
service in your projectsdocker-compose.yml
filecli: ... volumes_from: - ssh-agent ...
-
Update container configuration with
dsh up
-
See
dsh help ssh-agent
for more usage information.