Reputation: 6962
I am starting out with heroku and am following the getting to start with heroku tutorial. I am on windows 7 and am using Windows powershell as the command line.
The commands that I am using are
git clone git://github.com/heroku/ruby-sample.git
cd ruby-sample
heroku login
heroku create
git push heroku master
heroku open
The directory was cloned and after heroku login
I got Authentication successful.
in the command line. After heroku create
I got
Creating immense-lowlands-8694... done, stack is cedar
http://immense-lowlands-8694.herokuapp.com/ | [email protected]:immense-lowlands-8694.git
Git remote heroku added
so the app was added to my heroku account. But there was problem with git push heroku master
. I got
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What I have tried so far
heroku keys
and it says that there is a key present for my e-mail ID.heroku keys:add
and gotthis
Found existing public key: C:/Users/Aseem/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Aseem/.ssh/github_rsa.pub... done
but after that the error didn't end.
ssh-keygen
wasn't recognized so I guess it's for linux.heroku keys:remove KEY_NAME
and then heroku login
to login again but that didn't take care of the error either.What can I do to solve the problem?
Upvotes: 0
Views: 2033
Reputation: 6962
Installed MSysGit
instead of git
. Added the C:\Program Files(x86)\Git\bin
directory to the PATH variable and then doing what this answer says solved the problem.
Upvotes: 1