Merge pull request #6780 from dokku/6730-ssh-keys-docker-docs

Clarify ssh-keys commands to run when adding ssh keys in docker-based installation
This commit is contained in:
Jose Diaz-Gonzalez
2024-03-28 23:41:32 -04:00
committed by GitHub

View File

@@ -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