Skip to content

Instantly share code, notes, and snippets.

@exalted
Last active December 2, 2022 08:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exalted/79e0224109f277121def to your computer and use it in GitHub Desktop.
Save exalted/79e0224109f277121def to your computer and use it in GitHub Desktop.
Create SSH key (Heroku)

Create SSH key

It's best having separate keys on different workstations (e.g., home, office, etc.).

Generate a public key:

ssh-keygen -t rsa -f ~/.ssh/heroku_rsa -C"$(whoami)@$(hostname)"`

We discourage using multiple accounts to deploy code to Heroku, instead add yourself (or ask destination account owner inviting you) as a collaborator to a specific app.

Upload your public key to Heroku:

heroku keys:add ~/.ssh/heroku_rsa.pub

Boring details: https://devcenter.heroku.com/articles/keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment