1

I've added my ssh key to RhoHub, but I'm still getting an access denied error. Any thoughts?

$ git clone git@git.rhohub.com:remcat/First App.git
Initialized empty Git repository in /home/Ramy/App.git/.git/
Access denied...
fatal: The remote end hung up unexpectedly

$ git clone 'git@git.rhohub.com:remcat/First App.git'
Initialized empty Git repository in /home/Ramy/First App/.git/
usage: git upload-pack [--strict] [--timeout=nn] <dir>
Error executing 'git-upload-pack'...
fatal: The remote end hung up unexpectedly
David Cain
  • 16,484
  • 14
  • 65
  • 75
Ramy
  • 20,541
  • 41
  • 103
  • 153

1 Answers1

2

If your remote repo url contains space, you might want to add quotes around it:

git clone "git@git.rhohub.com:remcat/First App.git"

Otherwise, it will look for a repo named 'App', to be cloned in the local directory "App.git", which I suspect isn't what you want.

If the error persists, then you need to check for ssh issue, as described in "Heroku push master ssh problem", for instance.

Start then at least with a ssh -vvvT git@git.rhohub.com.

But, first, make sure the space in your url isn't the actual problem here.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • ok, i tried single quotes (you can see it in the original question). I'll give this a shot with double quotes tonight and let you know. thx. – Ramy Aug 10 '12 at 16:05
  • well i think you're right about the space but I ended up just creating a new app called "MyApp". Couldn't get the original to work. – Ramy Aug 17 '12 at 03:40