Skip to main content
  1. Posts/

Add new machine to Heroku project

·129 words·1 min· loading · loading · ·
Marco Mornati
Author
Marco Mornati
I build, self-host and sometimes break software in production — writing about AI tooling, coding agents and infrastructure.

Overview
#

If, like me, you use many computers, you need to reconfigure things to allow all your machines. Today I was stuck on a Heroku repository clone (SSH key problem on my work laptop).

Adding Your SSH Key
#

To add a new machine to your Heroku account (after Heroku package installation, using gem for example), just use:

mmornati@notebook projects$ heroku keys:add

Found existing public key: /home/mmornati/.ssh/id_rsa.pub
Uploading SSH public key /home/mmornati/.ssh/id_rsa.pub

Verification
#

If everything worked well, you should have access to your repository:

mmornati@notebook projects$ git clone [email protected]:mmornatibot.git
Cloning into 'mmornatibot'...
remote: Counting objects: 226, done.
remote: Compressing objects: 100% (219/219), done.
remote: Total 226 (delta 41), reused 141 (delta 2)
Receiving objects: 100% (226/226), 95.28 KiB | 50 KiB/s, done.
Resolving deltas: 100% (41/41), done.