I can’t get the system of managing ssh keys.
I want to push application to Heroku, so I tried to push but get error.
Here is my log
$ git push heroku master
! Your key with fingerprint bf:f6:ed:14:9d:cd:52:a2:a3:16:b2:e9:b4:f2:bf:ba is not authorized to access warm-samurai-6574.
fatal: The remote end hung up unexpectedly
User@PK /e/examples (master)
$ heroku keys:add
Found existing public key: C:/Users/User/.ssh/id_rsa.pub
Uploading SSH public key C:/Users/User/.ssh/id_rsa.pub
!This key is already in use by another account. Each account must have a unique key.
User@PK /e/examples (master)
$ heroku keys
=== 1 key for denys.medynskyi@gmail.com
ssh-rsa AAAAB3NzaC...etyxYh4Q== User@PK
Every account has own ssh key. So I can push from any computer, because ssh key is pushing to heroku ?
Every application on heroku should have own ssh key or not ?
Basically, your computer has an SSH key. However, the SSH key on it is associated with another Heroku account (different from the one you are using now). Your best bet would be to generate a brand new SSH key and add it to Heroku.
Just make a new SSH key on your machine and upload it to Heroku:
Make sure to save it as ‘/Users/User/.ssh/new_id_rsa.pub’ when the prompt asks you.
This should allow you to use Heroku.
As for your other questions: you can push to Heroku from any computer as long as you add the computer’s SSH keys through
heroku keys:add. And no, every application does not need to have it’s own SSH key.