I am trying to use Heroku commands on Cygwin but they seem to not do anything, but hang.
I installed the Heroku toolbelt for Windows.
Doing the $ heroku version gives me heroku/toolbelt/3.10.5 (i386-mingw32) ruby/1.9.3.
But whenever I try a $ heroku login or $ heroku login it just hangs and does nothing.
I setup a Heroku remote in one of my Github repo folders and tried to heroku push master but it prompts me for my password, and I type it in, but gives me this message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Help! Has anyone successfully used Heroku on Cygwin?
It sounds like heroku is trying to log in with your ssh key, which isn't added to your account. Ensure that you've added your public key to your heroku account (if you log in, go to account, add the ssh public key (~/.ssh/id_rsa.pub)). this might help you out as well.
Related
I'm trying to clone a current project from Heroku. I was having permission access issues so I removed existing keys, and added my current key:
$ heroku keys:add
Found an SSH public key at /home/martyn/.ssh/id_rsa.pub
Would you like to upload it to Heroku? [Yn] Y
Uploading SSH public key /home/martyn/.ssh/id_rsa.pub... done
$ heroku keys
=== martynbissett#yahoo.co.uk Keys
ssh-rsa AAAAB3NzaC...5VRkk6UVBT martyn#martyn-Lenovo-B590
$ heroku git:clone -a young-lowlands-8336
Cloning from app 'young-lowlands-8336'...
Cloning into 'young-lowlands-8336'...
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I've check the site is live, and it is. From my Heroku control panel I can see that this project is active too. Why am I still being denied?
This is the response I got back from Heroku, and it seems to work now:
It looks like your local SSH is using a different key than the default one.
Could you try resetting your keys identities to the default with the following command:
ssh-add -D
I want to deploy rails app without using Heroku ToolBelt. Is it possible? If so, how? I'm only allowed to use Heroku dashboard; I'm not allowed to use any other cloud service :(
I have to run PostgreSQL commands, adding add-ons and setting configuration variables and possibly other tasks for which we have Heroku Toolbelt to deploy a application in production environment.
Error:
user#xx ~/Desktop/github/blog (master)
$ git push git#heroku.com:herokugui.git master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I don't want to use Heroku Toolbelt. That's why I am using Git commands to deploy code on Heroku. I am not able to push code to Heroku using Git commands. Is it possible to do this task without the toolbelt?
Another question I have is: is there any way to run PostgreSQL commands on Heroku GUI? If so, how?
It's not easy (as with Heroku toolbelt), but it's possible. It involves hanging around your Heroku dashboard at least, so make sure you can access it.
First off, you need a key. If you're on a Linux machine (as me), then in your home directory you should have a folder named .ssh (it may be hidden, hit Ctrl+H to reveal, again, if Linux) and a file id_rsa.pub in there. If not, you need to generate your SSH key first.
ssh-keygen -t rsa
That will prompt you for a folder, default is fine, just hit Enter, then enter the passphrase (twice) to protect your key from being accessed by anyone else on your computer: without a passphrase it's unencrypted and free for anyone to take and use from that machine.
Once that is done, locate your public key file: id_rsa.pub. Note: not id_rsa, it's a private key, you may not want to give it to anyone, it's much like your future Heroku password, except for it's insanely large for a password. Open id_rsa.pub, you should see stuff like:
ssh-rsa aWhOLELotofUnreadABLEGibbERishWHiCHiSactUALLyYourPubLIcKeY...
You need to enter that line into your account settings in Heroku dashboard, under SSH Keys. You can find more info on keys here, in Heroku docs. Make sure Heroku actually recognizes you by issuing this:
ssh -v git#heroku.com
It should state you're authenticated.
Now for the git address. I assume you know your way around git, so I'll keep it short: you'll need to derive your repository address from your app name. Heroku usually generates weird (yet somewhat poetic) names like falling-wind-1624 or shielded-fjord-1858. I'll take the first one as an example, this is how you add its address as a git remote:
git remote add heroku git#heroku.com:falling-wind-1624.git
I'll explain a bit of it below. So what the toolbelt does here, is to use your app name only, it just builds the URL the same way by adding a path to Heroku server. Once that's done, you should be able to push your code:
git push heroku master
I've named a Heroku remote heroku, above, that's why I'm using heroku name here, you can name it whatever you want and use this afterwards. Once you've pushed the code, the rest is up to you.
git push heroku master
error: cannot spawn ssh: No such file or directory fatal:
unable to fork
I have windows 8 and i am working on the third rails tutorial. When I use the railsinstaller I push my app through Heroku. For the tutorial I had to make some changes and add extra gems and now I do not have access to Heroku.
Heroku has my key. I checked it.
Thank you for helping
Try running "ssh -T git#github.com" in your terminal to see if you're authenticated. I suggest following this guide if you haven't already done so: https://help.github.com/articles/generating-ssh-keys
I have a problem whenever I do git push heroku master, it gives me the following error:
!Invalid path!
Syntax is: git#heroku.com<app>.git where <app> is your app's name
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I have used MSysGit and I created a ruby on rails project, pushed it to github.
then in the project folder I did heroku login, succesfully authenticated. Did heroku create sucessfully, created a RSA keypair, added it to heroku. then I try to push to heroku and it fails everytime, anyone able to help?
The problem is that your SSH key being used is NOT yet uploaded to Heroku. I'm not familiar with your Git client, but what you need to do is find your SSH key file, then run:
heroku keys:add /path/to/my/key.pub
This will upload your public SSH key to Heroku, allowing you to push your repository.
I'm trying to deploy my Rails app on heroku.
But on All things it would have to fail at the very last step.
My git is all set up, I got a working git repository, a heroku account, installed the heroku_toolbelt and I can login via "heroku login"
I also can create a new repository with "heroku create" and do get my url path and the feedback "git remote heroku added".
But trying to push it on heroku with "git push heroku master" fails and results in the following message:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What kind of public key is being needed? and i Know the repository exists, it's there on my heroku account :/
I hope you can help me out!
You need to add your public key to Heroku - asumming you have one in your ~/.ssh folder (it would typically be called id_rsa.pub). If not generate one with ssh-keygen
heroku keys:add
should sort the problem out and you should be able to push your application.