[ERROR] Subprocess (ssh-keygen) encountered an error (exit code 255)

I got it working. I’m not really sure why this worked, but thought I would share anyway:

  • open the Git Bash command line app (which came along with the Git install)
  • copied the last command attempted by the ssh setup script (modified for bash),
    ionic ssh generate /c/Users/Govinda/.ssh/ionic/1230487
  • enter your passphrase
  • this succeeded in generating the key files
  • git push ionic master still wasn’t working
  • followed the instructions output by the ssh generate command, and ran this:
    ionic ssh add /c/Users/Govinda/.ssh/ionic/1230487.pub
  • now the git push command works!

Hope this helps someone.

1 Like