docs: ensure we have an example for adding keys as another user

Closes #2680

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez
2017-03-24 17:35:05 -06:00
committed by GitHub
parent dd7439095a
commit edda1e6567

View File

@@ -56,6 +56,13 @@ Admin users and root can also add keys remotely:
cat ~/.ssh/id_rsa.pub | ssh dokku@dokku.me ssh-keys:add KEY_NAME
```
If you are using an ssh user other than `dokku`, then you'll also need to specify the `dokku` bin:
```shell
cat ~/.ssh/id_rsa.pub | ssh root@dokku.me dokku ssh-keys:add KEY_NAME
```
Finally, if you are using the vagrant installation, you can also use the `make vagrant-acl-add` target to add your public key to Dokku (it will use your host username as the `USER`):
```shell