[aur-general] SSH Key Denied Problem

Eli Schwartz eschwartz at archlinux.org
Thu Jul 8 23:38:10 UTC 2021


On 7/8/21 1:23 PM, Matt Spaulding via aur-general wrote:
> I have an account with the AUR and a couple of packages.  I'm attempting to
> update one of those packages and I am getting a permission denied error
> when trying to clone the git repository.  Now, my SSH key has changed and I
> went ahead and updated my SSH public key in the account settings.  But for
> some reason I still get a permission denied error.
> 
> I am wondering if I am doing something wrong here, or if there is something
> an administrator needs to fix, or something else altogether.


You can debug the connection fairly simply: instead of trying to git
clone, try:

ssh -v aur at aur.archlinux.org

You will get a lot of debug info printed out, a successful connection
should look something like this:


```
debug1: Offering public key: /home/eschwartz/.ssh/keys/aur RSA
SHA256:3JKGjA8QHS9uXZ03uBm9YjjCxJVykNkmGGEp0/aqrHo explicit
debug1: Server accepts key: /home/eschwartz/.ssh/keys/aur RSA
SHA256:3JKGjA8QHS9uXZ03uBm9YjjCxJVykNkmGGEp0/aqrHo explicit
debug1: Authentication succeeded (publickey).
Authenticated to aur.archlinux.org ([2a01:4f9:c010:50::1]:22).


[...]

Interactive shell is disabled.
Try `ssh aur at aur.archlinux.org help` for a list of commands.
```

You might be e.g. misconfigured and ssh is offering the wrong key. The
debug messages will, like my example, list out the actual key file it is
trying to send.

Once you can get ssh to work without git on top, git should work too.

Feel free to post logs, or join IRC for real-time support.


> Here's a link to the account in question.
> 
> https://aur.archlinux.org/account/mattops
> 


-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-general/attachments/20210708/f0ef865b/attachment.sig>


More information about the aur-general mailing list