Reputation: 435
Ideally, I want to be able to work from my windows or mac transparently on the same project which I want to keep remotely on github and heroku.My ssh keys are identical on my github account, my heroku account and my windows pc. I am now migrating most of my development work from my windows platform to my new mac. I read "It’s generally a good idea to login and add your public key immediately after installing the heroku toolbelt so that you can use git to push or clone Heroku app repositories".
I was not allowed to push remote on the windows pc, when I tried to rename the ssh keys. On the mac, I am confused at to whether I need to delete the git generated keys and copy the same ssh keys as I use everywhere else. If I am to keep the git generated keys on my mac how do I proceed if the two machines are each identified by their own ssh keys.
Upvotes: 1
Views: 209
Reputation: 875
Heroku needs to know the public keys of the different devices you’re making ssh connections from —the same goes for Github—.
For example: If you buy a computer, make a Public SSH Key for him, load your identities into your authentication agent, and tell Heroku about your public key (probably would be good if you add them to your Github account too).
If you’re missing the last step, in Heroku’s Account menu you can add the Public SSH Keys.
Upvotes: 2
Reputation: 37507
SSH keys identify you as the user and not the computer - although they do typically have the signature of the machine that generated them at the end.
Copy the keys into ~/.ssh keys on your Mac and then clone your app from Github, once cloned go into the folder and do heroku git:remote
which will add a heroku
remote to your local repo and allow you to do git push heroku master
Upvotes: 1