I'm trying to add a remote to my existing local git repo and it will not authenticate me with my public key.
I've entered the public key into my PhoneGap Build user account however everytime I connect to Phone Gaps git server I get:
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Jimmy can you fix it for me?
-
Hello, Same here.
---
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
--- -
-
I get something like:
--
DENIED to soapdog
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
--
but for another project of mine it works fine... -
-
I have the same problem.
Running:
ssh -v git@git.phonegap.com
will end with:
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /var/lib/myusernamehere/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey) -
-
It looks like there are a couple of issues here - one (Andre's) is that a repository is not granting rights to the correct repo, the other is that some people's public keys are not accepted at all.
If you cannot authenticate to the server - if you receive a "Permission denied (publickey)" error - please post your PhoneGap Build username in this thread.
Andre: please let me know the id of the app you cannot push to. I will investigate what's happening there.- view 5 more comments
-
-
-
-
-
-
Hello again,
A pesky new line was at the end of key when I copied it from TextEdit. Took this out of the public key and all works now. Phew.
Thanks!
Alan -
-
-
-
Hello Andrew,
Thanks for the reply. The ID for the app is 123680 (I think is the ID, if it is not I apologize, this is the number after apps in the URL).
Thanks
andre -
-
hey andrew, thanks for the quick reply. here are the details:
id: 124130
username: antonymous
best,
anton -
-
It looks like there was a bad update to our admin repo that was preventing any future updates from being processed (new repositories or new users).
I've patched this now and the admin repo has been updated - we're investigating what caused this error and how to prevent it from recurring.-
Hi Andrew, I am having that same problem: I get the "Permission denied (publickey)" error. Can you help?
My username is smartlab (I logged using that username from my github account)
PS: It works fine when using other github repositories. -
-
-
-
-
-
-
I'm still getting issues. I've tried created a new repo this morning and it still won't connect.
I'm logged in with my GitHub account under k0nG. -
-
-
-
-
-
Same issue when trying to push to remote repo as collaborator "W access for ... DENIED to NenadO
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
"
app id: 127821
phonegap username: NenadO -
-
24 hours after creating the repo, it now works for me.. interestingly, even through I've deleted an old app, the repo for it still exists.
-
-
Looks like the same issue arose - we're still working on a permanent fix.
-
-
Same problem here. PG username jamonholmgren.
➜ Projects ssh -vT git@git.phonegap.com
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for *
debug1: Connecting to git.phonegap.com [173.45.227.137] port 22.
debug1: Connection established.
debug1: identity file /Users/jamon/.ssh/id_rsa type 1
debug1: identity file /Users/jamon/.ssh/id_rsa-cert type -1
debug1: identity file /Users/jamon/.ssh/id_dsa type -1
debug1: identity file /Users/jamon/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4ubuntu4
debug1: match: OpenSSH_5.5p1 Debian-4ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'git.phonegap.com' is known and matches the RSA host key.
debug1: Found key in /Users/jamon/.ssh/known_hosts:4
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/jamon/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /Users/jamon/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
Notice the "Roaming not allowed by server" line? Not sure what that is. -
-
username: ajschmaltz. permission denied (publickey)
-
-
Hi my account is linked in from github as thefirstdude
can you please get my account to work public key denied etc -
-
Hello,
I'm new to Phonegap, and maybe I made a mistake, but I experience the same issue as above. My app id is: 140508.
Any ETA on long term patch?
Thanks -
-
-
-
Hi, Same issue for me with 138729 and username: semsitivity throught github.
I'd like help too! -
-
I've gone and patched this again quickly - thanks for your patience folks.
-
-
-
-
Same issue: username: christopherbalz
Using a key with no password set.
ssh -vT git@git.phonegap.com
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/christopherbalz/.ssh/config
debug1: /home/christopherbalz/.ssh/config line 3: Applying options for git.phonegap.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to git.phonegap.com [173.45.227.137] port 22.
debug1: Connection established.
debug1: identity file /home/christopherbalz/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/christopherbalz/.ssh/id_rsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4ubuntu4
debug1: match: OpenSSH_5.5p1 Debian-4ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024 is known and matches the RSA host key.
debug1: Found key in /home/christopherbalz/.ssh/known_hosts:19
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/christopherbalz/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey). -
-
-
-
What's the Status of this?
Is this fixed?
I'm having the same issues and I have tried everything
do you need my username to fix it for me? -
-
Looked as though my attempt to fix this last night caused some further problems - we're actively seeking out the issue here.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Same problem for me, username is davidfsmith
I've has this working in the past, just trying to use a different machine on a new app.
Would be great if you could use private repo's on GitHub to host the code (as an interim measure as I can't push directly I'm having to make my GitHub repo public for each update!)
Great service though -
-
-
-
For anyone having this problem: please run this command:
ssh git@git.phonegap.com info
You should get a list of repos you have access to. If you get something else, please check whether the SSH key you're using the same one listed in your profile. You may also want to note if you've changed your username - if you're authenticating as "alunny" instead of "aLunny", for instance.
A heads up: in the near-medium term, we will have tighter integration with GitHub's API for private code. While hosting our own git repos has been an instructive exercise, it's obviously not our strong point. -
-
Username is eldernos.
Here is my bash debug:
$ ssh -v git@git.phonegap.com info
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Connecting to git.phonegap.com [173.45.227.137] port 22.
debug1: Connection established.
debug1: identity file /c/Users/Loki/.ssh/identity type -1
debug1: identity file /c/Users/Loki/.ssh/id_rsa type 1
debug1: identity file /c/Users/Loki/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debia
n-4ubuntu4
debug1: match: OpenSSH_5.5p1 Debian-4ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024 is known and matches the RSA host key.
debug1: Found key in /c/Users/Loki/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /c/Users/Loki/.ssh/identity
debug1: Offering public key: /c/Users/Loki/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /c/Users/Loki/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey). -
-
Just replying to this as I was having issues. I found that for me the easiest way to get access was to create a phonegap certificate as ~/.ssh/id_phonegap and then use ~/.ssh/config to ensure the correct cert was being supplied when connecting:
~/.ssh/config
# PhoneGap Dev
# build.phonegap
Host phonegap
HostName git.phonegap.com
User git
IdentityFile ~/.ssh/id_phonegap
IdentitiesOnly yes
The contents of the cert .pub file need to be pasted into the ssh key textarea under your account details. Works for me on multiple machines with the cert installed.
Test using
ssh phonegap info
And you should see a list of the repositories that you are granted access to.
I also have a similar entry for Github using a different cert.
# GitHub
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_dsa
IdentitiesOnly yes -
-
That worked great! You are the man, David Smith. Whenever I start working on this bash stuff I start to feel like Samuel L. Jackson in Jurassic Park.
-
-
Hmm... I can get info but it won't let me push... still gives access denied(public key) on that.
-
-
I just started having this issue today. I was able to push to my repo last week but today I'm getting a Permission denied error.
Username: kevinvangelder
App ID: 144337
Any help would be appreciated. -
Loading Profile...

Twitter,
Facebook, or email.











