Git push heroku master error Permission denied (publickey)

I am new to heroics and I cannot promote my rails project.

I can successfully enter the hero, and I have the keys

Keys ssh-rsa AAAAB3NzaC...oPiDGoh0Gt root@Slava-System-Product-Name 

but when i git push heroku master i get

  Permission denied (publickey). fatal: The remote end hung up unexpectedly 
+4
source share
1 answer

A common key error is: Permission denied (publickey). You can fix this by using the: add keys to notify Heroku of your new key.

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

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

UPDATE , work from the next blog.

  • Create a new public key

    ssh-keygen -t rsa

  • Loading in hero

    heroku keys: add / root / .ssh / id_rsa.pub

+11
source

Source: https://habr.com/ru/post/1479235/


All Articles