git problems with phpfog, remote end hung up unexpectedly

If you have issues with phpfog, trying to get your repos to clone to your local, so you can upload code, there is a very subtle problem you may run into that I discovered after much beating my head against the wall. The problem was “I am an idiot.”

If you’re using the command line, this is how to get around errors like these:
Fatal: The remote end hung up unexpectedly
R access for yoursite.phpfog.com DENIED to

PHPFOG unwisely does not tell users about this small distinction in the hostname and their server name. This is especially a problem when using the multiple SSH keys setup they recommend in the support pages.

To clone a repos, beware that phpfog is the servername you connect to (the one with git01 on the front) and your servername (the one at the end of this command below) is phpfogAPP. I kept getting this wrong because they should have either alerted me to this, or not made the damn things so similar, like start it with something else.

git clone git @ git01.phpfog.com : yoursite.phpfogapp.com (don’t leave in the spaces, I did this for readability)

be sure to type it correctly, that was my problem. I also had the further abstraction of listing all my rsa keys in the ~/.ssh/config file on the mac, so it was harder to troubleshoot, since my 2 hostnames were not in the same declaration, the config file finds the right rsa id based on the servername alias you enter in the git clone command.

Let me know if you have trouble and I will see if I can help! Enjoy!

Leave a Reply

You must be logged in to post a comment.