From a6cad2cca40082f2b962b90d3d84a37e8947e164 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 28 Mar 2024 23:40:45 -0400 Subject: [PATCH] docs: clarify ssh-keys commands to run when adding ssh keys in docker-based installation Closes #6730 --- docs/getting-started/install/docker.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/install/docker.md b/docs/getting-started/install/docker.md index 89b617fee..e8e8c95b0 100644 --- a/docs/getting-started/install/docker.md +++ b/docs/getting-started/install/docker.md @@ -91,12 +91,18 @@ RUN dokku plugin:install https://github.com/dokku/dokku-redis.git redis ## SSH Key Management -To initialize ssh-keys within the container, use `docker exec` to enter the container and run the appropriate ssh-keys commands. +To initialize ssh-keys within the container, use `docker exec` to enter the container: ```shell docker exec -it dokku bash ``` +Next, run the appropriate ssh-keys commands: + +```shell +echo "$CONTENTS_OF_YOUR_PUBLIC_SSH_KEY_HERE" | dokku ssh-keys:add KEY_NAME +``` + Please see the [user management documentation](/docs/deployment/user-management.md) for more information. ## Pushing Applications