You are not logged in.

#1 2017-01-22 15:30:57

kgizdov
Package Maintainer (PM)
From: Edinburgh, UK
Registered: 2015-12-08
Posts: 113

[SOLVED] Permission denied (publickey) - Cannot pull/push

Hi,

I'm having the weirdest problem. I pushed an update to one of my packages today and now that I want to update some of my others, I keep getting permission denied (publickey) error. I tried ssh-ing directly with verbose and I have confirmed that my ssh config is applied correctly with the correct keys. I also double checked my AUR profile - it has the correct public key. I can ping and ssh can connect to aur.archlinux.org, but I cannot authenticate.

Have I been banned or something?

Last edited by kgizdov (2017-01-22 17:43:56)

Offline

#2 2017-01-22 15:50:41

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Same here !
Have regenerate the all ssh mess. Still can't push an updated pkg.

Offline

#3 2017-01-22 16:03:11

FadeMind
Member
Registered: 2013-09-16
Posts: 7

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Confirmed

$ ssh -v aur.archlinux.org                                 
OpenSSH_7.4p1, OpenSSL 1.0.2j  26 Sep 2016
debug1: Reading configuration data /home/fademind/.ssh/config
debug1: /home/fademind/.ssh/config line 1: Applying options for aur.archlinux.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to aur.archlinux.org [5.9.250.164] port 22.
debug1: Connection established.
debug1: identity file /home/fademind/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/fademind/.ssh/id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to aur.archlinux.org:22 as 'aur'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
debug1: Host 'aur.archlinux.org' is known and matches the ECDSA host key.
debug1: Found key in /home/fademind/.ssh/known_hosts:1
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/fademind/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).

Offline

#4 2017-01-22 16:54:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2017-01-22 17:14:32

nmlibertarian
Member
Registered: 2012-05-29
Posts: 5

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Yep...sure looks like the server end of things is "messed up".....

I also have basically the same issues everyone else and my screen-output is (essentially) the same as pasted above.

Offline

#6 2017-01-22 17:14:48

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

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Not anymore...

Offline

#7 2017-01-22 17:19:26

nmlibertarian
Member
Registered: 2012-05-29
Posts: 5

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Nope...still messed up.....

well.....hmmmm.....hold on "Scotty";

Must be some sort of delay-hick-up...now it works !

Thanks for getting this fixed so quickly !!

Last edited by nmlibertarian (2017-01-22 17:22:03)

Offline

#8 2017-01-22 17:43:32

kgizdov
Package Maintainer (PM)
From: Edinburgh, UK
Registered: 2015-12-08
Posts: 113

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Offline

#9 2017-12-04 15:34:58

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Same problem sad

git clone ssh://ubermensch@aur.archlinux.org/openpyn-nordvpn-git                                                                         128 ↵
Cloning into 'openpyn-nordvpn-git'...
ubermensch@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.

Offline

#10 2017-12-04 15:49:49

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Not the same problem at all, yours is a PEBCAK.

You should be using the username aur instead of your own username.
https://wiki.archlinux.org/index.php/Ar … ew_package

Last edited by Slithery (2017-12-04 16:25:36)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2017-12-04 18:12:25

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

slithery wrote:

Not the same problem at all, yours is a PEBCAK.

You should be using the username aur instead of your own username.
https://wiki.archlinux.org/index.php/Ar … ew_package

Very thanks but now :

ubermensch@netblackbook ~/OpenpynAUR  
╰─➤  git remote add PKGBUILD .SRCINFO ssh://aur@aur.archlinux.org/openpyn-nordvpn-svn
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
╭─ubermensch@netblackbook ~/OpenpynAUR  
╰─➤  git remote add push ssh://aur@aur.archlinux.org/openpyn-nordvpn-svn
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
╭─ubermensch@netblackbook ~/OpenpynAUR  
╰─➤  ssh aur@aur.archlinux.org list-repos                          128 ↵
Enter passphrase for key '/home/ubermensch/.ssh/aur': 
*openpyn-nordvpn-svn
╭─ubermensch@netblackbook ~/OpenpynAUR  
╰─➤  

Offline

#12 2017-12-04 18:19:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Why do you have filenames in your 'git remote add' command?

Please follow the wiki instructions exactly, they are proven to work.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#13 2017-12-04 18:32:47

^-Ubermensch-^
Member
Registered: 2008-07-08
Posts: 58

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

slithery wrote:

Please follow the wiki instructions exactly, they are proven to work.

Yes...command 1 after Authentication :

git clone ssh: //aur@aur.archlinux.org/openpyn-nordvpn-svn 128 ↵
fatal: the destination path 'openpyn-nordvpn-svn' already exists and is not an empty directory.

─ubermensch@netblackbook ~  
╰─➤  git remote add test ssh://aur@aur.archlinux.org/openpyn-nordvpn-svn
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
╭─ubermensch@netblackbook ~  
╰─➤                 

Last edited by ^-Ubermensch-^ (2017-12-04 18:34:47)

Offline

#14 2017-12-04 18:47:50

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

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

1) When given an either-or in the Wiki instructions, you have somehow chosen to perform both. This is a very, very, very bad idea.

2) When given a rather clear error message from your first command, you have completely ignored the fact that it errored, and proceeded to try other commands without first trying to figure out what went wrong.

3) The error message "fatal error: sorry, but there is already a directory here and we cannot clone while overwriting your stuff" was, as given in the initial `git clone` response, fairly clear about what the problem is. Is there a reason you keep on trying to re-clone the package? Is there a reason you are not actually entering the clone you created and are instead trying arbitrary commands without knowing why?

4) Is there a reason why you are discussing the basics of git usage in a thread that is about a year-old, long-since-fixed bug in the aur.archlinux.org server authentication backend?


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

Offline

#15 2017-12-04 18:59:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [SOLVED] Permission denied (publickey) - Cannot pull/push

Closing, for the reasons Eschwartz listed.

^-Ubermensch-^, please do not necrobump.

https://wiki.archlinux.org/index.php/Co … bumping.22


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB