You are not logged in.

#1 2016-10-13 21:05:24

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

[SOLVED] Permission denied when cloning new repo

Hi!

I'd like to create a new AUR package.

I set up the /home/egidio/.ssh/config file like this:

Host aur.archlinux.org
  IdentityFile ~/.ssh/aur
  User aur

I then created a new SSH key, without a passphrase, with the ssh-keygen -f ~/.ssh/aur command. I copied the content of the /home/egidio/.ssh/aur.pub file in the SSH Public Key section, AUR - My Account page.

Now I'm trying to clone the new repo with git clone ssh://aur@aur.archlinux.org/foo.git but I got the following error:

Cloning into 'foo'...
sign_and_send_pubkey: signing failed: agent refused operation
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I'm sure there is something stupid I'm missing, but I cannot get what it is.

Do you know why it is not working?

Last edited by EgidioCaprino (2016-10-15 19:45:40)

Offline

#2 2016-10-13 22:11:58

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Permission denied when cloning new repo

try "git clone git+ssh://aur@aur.archlinux.org/package_name.git"


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-10-14 00:04:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] Permission denied when cloning new repo

What package are we talking about?

Offline

#4 2016-10-15 19:45:27

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: [SOLVED] Permission denied when cloning new repo

Lone_Wolf wrote:

try "git clone git+sshhmm/aur@aur.archlinux.org/package_name.git"

That worked! Thank you!

Offline

#5 2016-10-21 03:13:54

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Permission denied when cloning new repo

There is no reason why that should work better than without the "git+" at the beginning. It is a deprecated, never encouraged alternate spelling for exactly the same thing. In fact, the only place I have ever seen it used is in makepkg source urls, and that because makepkg cuts off the "git+" and uses it to determine which VCS is applicable.

https://www.spinics.net/lists/git/msg267826.html

...

Does it work normally without the "git+", now?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2016-10-21 12:31:33

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] Permission denied when cloning new repo

It comes from the AUR wiki page,  https://wiki.archlinux.org/index.php/Ar … w_package/


I do remember having used git+ssh to create the repo for a new package ever since AUR switched to a git-based solution .

Last edited by Lone_Wolf (2016-10-21 12:34:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2016-10-21 15:01:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: [SOLVED] Permission denied when cloning new repo

If I am cloning, and don't plan on pushing, I use git clone https://aur.archlinux.org/packageName

Edit  That ^^ turned into a link.  It is not a valid link

Last edited by ewaller (2016-10-21 15:02:11)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2016-10-21 15:59:23

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Permission denied when cloning new repo

Lone_Wolf wrote:

It comes from the AUR wiki page,  https://wiki.archlinux.org/index.php/Ar … w_package/


I do remember having used git+ssh to create the repo for a new package ever since AUR switched to a git-based solution .

Thanks. I've fixed the Wiki.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB