You are not logged in.

#1 2018-10-07 18:44:44

fusion809
Member
Registered: 2015-06-19
Posts: 70

[SOLVED] Can't commit to AUR, despite SSH key being added to profile

Hi,

I maintain quite a few AUR packages, and at the moment I'm having great difficulty committing to it. I maintain my packages from Arch, as well as a few other distros (namely Gentoo and openSUSE Tumbleweed), although don't worry I have mksrcinfo set up on these distros too and it runs before each commit. Presently I have my Gentoo key added to my profile; I know I at least once was able to have my Arch, Gentoo and Tumbleweed keys added to my profile (i.e. the SSH key section of https://aur.archlinux.org/account/fusion809/edit/) and was able to commit on all three without a problem. Due to my present error, however I decided to have only one key added there, just in case something has changed. I have evaluated my key with keychain on my Gentoo system with:

eval keychain -q --eval aur

(and my key is at ~/.ssh/aur, which I generated using ssh-keygen -f ~/.ssh/aur, per the Arch Wiki's instructions), yet when I commit changes to my gvim-gtk2 package I get:

aur@aur.archlinux.org: Permission denied (publickey).
fatal: Could not read from remote repository.

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

. I get this same issue on Arch when I replace my SSH key (on my profile) with my Arch key, evaluate the key (with the above keychain command) and try to commit to this same repo. Funny thing is that I can commit to GItHub repos with SSH authentication without a problem, and I set up my SSH keys the same way for it. I also can commit on Tumbleweed without an issue (after I've replaced the key with Tumbleweed's, of course), despite setting up SSH the same way on it. Please folks tell me there is a fix for this. If you're worried there's a difference between Arch and Gentoo on this I'll be happy to switch my key to Arch and debug on it instead. Any further info you need I will be happy to provide, merely ask.

Thanks for your time and patience,
Brenton

Last edited by fusion809 (2018-10-07 19:07:55)

Offline

#2 2018-10-07 19:01:27

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

Re: [SOLVED] Can't commit to AUR, despite SSH key being added to profile

Maybe try running

GIT_SSH_COMMAND='ssh -v' git push

to debug what ssh is doing there?

EDIT: but it looks like you just successfully pushed something right now as well as 3 hours ago.

Last edited by eschwartz (2018-10-07 19:02:37)


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

Offline

#3 2018-10-07 19:05:42

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

Re: [SOLVED] Can't commit to AUR, despite SSH key being added to profile

Also I'm quite confused since your commits don't contain anything in them except for updating a deprecated comment in the .SRCINFO file.

These days mksrcinfo is supposed to just call makepkg --printsrcinfo in a subprocess. BTW at least Gentoo provides a pacman package for e.g. administrating Arch Linux chroots, so you can get makepkg from there. I don't know about SUSE.


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

Offline

#4 2018-10-07 19:06:51

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: [SOLVED] Can't commit to AUR, despite SSH key being added to profile

Never mind, I found using:

eval ssh-agent $SHELL
ssh-add ~/.ssh/aur

was what was needed.

Offline

#5 2018-10-07 19:07:37

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: [SOLVED] Can't commit to AUR, despite SSH key being added to profile

Oh and thanks for the SRCINFO tip smile.

Offline

Board footer

Powered by FluxBB