Heroku on Windows gives an error: Content Invalid public key

Heroku refuses to accept my public key, which I created using puttygen. I tried to search for answers using Google, however, the decision to copy the key, and not save it through puttygen, did not solve my problem.

L:\>heroku keys:add "[path]\.ssh\id_rsa.pub"
Uploading ssh public key [path]\.ssh\id_rsa.pub
Enter your Heroku credentials.
Email: [email]
Password:
Uploading ssh public key [path]\.ssh\id_rsa.pub
 !   Contents Invalid public key

I tried to generate several key pairs if only one was unacceptable and none of them worked.

+3
source share
2 answers

you can try making a cd in the .ssh directory and just do heroku keys: add id_rsa.pub

check the key’s timestamp to make sure it has just been created, the contents of the file should look something like this:

SSH-RSA AAAAB3NzaC1kc3MAAACBAIEn8LFH1EaFETOehebaqMR + RaJOTv6BKR6fPcdGqB5d5Hdzsok1PDrXFxRdvmbPfgrMJUFkgXX2917432Lxv8LzthwgWKSnDvtN9kE0A6Mj82pnZMeyf + fCZMvnfb5w70iz6dNVLbDSO3nt65kIeE6cTQsrH + 1/PTLjsyJnAWllAAAAFQCEYdQipgY7mdDppo2UqT1XdQeWcQAAAIAcE3w/8CZhkztV9 +/R5N56QB4WAIen/fV3AjTHfVVNvhuiSTSst2wRpOEK27wVUz0k0otgUwnpjNt4ECwYj/5 + FXbIKCdcMEHAslCZPQ1R1Q9svrdjKpyw3S/V41OyPMAovfXoJeigfj2DGaStQ8RUFeVm2dpM0 +/fodUWf//teJsNRqmGcREq8oz7yFGMHpY5/te4MuVyCMqqlsA8jwAAAIBysaWrJqthkoWfqZ6I4n3Ge7ynoziwjefsllqqkdd ++ 6H7DZKHWybBl985yjuYL5yT9k9sbBgKaOHdp2lo9Kn/pX7Pn87mHNC4BKd + rXkCH5ufFg == bulbous@-mac.local

+1

puTTYgen.exe , heroku, " ", , OpenSSH mykey.pub, heroku: c:\mykey.pub.

, .

+18

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


All Articles