Tags

$ npm install -g heroku-cli
$ heroku --version
$ heroku login
Enter your Heroku credentials:
Email: sudogem@gmail.com
Password: ******************
Logged in as sudogem@gmail.com

$ ls -alh ~/.ssh
-rw-r--r-- 1 Arman Ortega 197121 1.2k Jul  3 22:00 id_boot2docker
-rw-r--r-- 1 Arman Ortega 197121  501 Jul  3 22:00 id_boot2docker.pub
-rw-r--r-- 1 Arman Ortega 197121 1.7K Jul  3 22:00 id_rsa_heroku
-rw-r--r-- 1 Arman Ortega 197121  407 Jul  3 22:00 id_rsa_heroku.pub
# We've found an existing ssh key for Heroku that we can use.

$ cat ~/.ssh/id_rsa_heroku.pub
ssh-rsa AAAAB3NzaC1yc....

$ heroku keys:add ~/.ssh/id_rsa_heroku.pub
Uploading C:/Users/armano/.ssh/id_rsa_heroku.pub SSH key... done

# Let's validate the connection
$ ssh -v git@heroku.com
...
...
debug1: Offering RSA public key: /c/Users/armano/.ssh/id_rsa_heroku
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to heroku.com ([50.19.85.132]:22).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: pledge: network
PTY allocation request failed on channel 0
shell request failed on channel 0

Note: When executing the command just use Windows Command Prompt or cmder.

Advertisements