Question
Dokku add new ssh key
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
[description]
can be anything as long as it is one word only (e.g. "personal", "home", etc.).How would you do this in Windows? Can I just copy/paste my key into the authorized_keys file?
Try running:
type "C:\path\to\public_key" | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
On a mac (and most unix-based machines), this will be:
cat ~/.ssh/id_rsa.pub | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku laptop"