heroku - rails - Permission denied (publickey)

前端 未结 5 1817
花落未央
花落未央 2021-02-04 06:01
heroku create
Creating floating-planet-1824......................... done, stack is bamboo-mri-1.9.2
http://floating-planet-1824.heroku.com/ | git@heroku.com:floating-pl         


        
5条回答
  •  清酒与你
    2021-02-04 06:39

    Assuming you already have a public and a private key to use in your ~/.ssh folder, there might be two different scenarios:

    • You didn't upload your public key to Heroku's remote server. Solution, execute: heroku keys:add ~/.ssh/your_public_key
    • Or you did, but you don't have your identities loaded into your SSH authentication agent. Solution, execute:

      ssh-add -K ~/.ssh/your_private_key # OSX

      ssh-add -k ~/.ssh/your_private_key # Ubuntu

    and enter your passphrase, so you can use your private key.

提交回复
热议问题