Hi Shawn, On 20/09/14 20:58, Shawn Sörbom wrote: > Hi, > when I try to use gbp-create-remote-repo for my Debian package I get the > following error: > > gbp-create-remote-repo --remote-url-pattern=ssh://github.com/shsorbom/kcm-ufw- > debian.git gbp: > info: Shall I create a repository for 'kcm-ufw' at > 'ssh://github.com/shsorbom/kcm-ufw-debian.git' now? (y/n)? > Warning: Permanently added the RSA host key for IP address '192.30.252.130' to > the list of known hosts. > Permission denied (publickey). gbp:error: Error creating remote repository > > I checked at github and their documentation said that it was a problem with my > RSA key. But, when I ran the test they recommended (ssh -vT git@github.com > ), everything worked fine. How can I make sure that gbp is actually using the > right key? > The problem here is that Github don't give shell access [1], so creating a repo isn't possible from the command line without using the GitHub API. So the workaround for this is to simply create an empty repo via the GitHub web interface and push to that. So if you already have you package prepared using Git: 1. git remote add origin git@github.com:user/repo.git 2. git push -u origin master In addition you'll need to push any additional branches (pristine-tar, upstream) to GitHub. Hope that helps Daniel Lintott [1] http://stackoverflow.com/questions/2423777/is-it-possible-to-create-a-remote-repo-on-github-from-the-cli-without-ssh
Attachment:
signature.asc
Description: OpenPGP digital signature