You are not logged in.

#1 2020-08-15 18:13:29

ElMastro
Member
Registered: 2015-12-02
Posts: 29

[solved]Problem with ssh authentication on AUR

Good Morning,
from the upgrade of the servers, https://www.archlinux.org/news/aur-migr … -hostkeys/ I'm experiencing some trouble uploading the PKGBUILD;

when I run

git push origin master

The authenticity of host 'aur.archlinux.org (95.216.144.15)' can't be established.
ECDSA key fingerprint is SHA256:uTa/0PndEgPZTf76e1DFqXKJEXKsn7m9ivhLQtzGOCI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'aur.archlinux.org,95.216.144.15' (ECDSA) to the list of known hosts.
aur@aur.archlinux.org: Permission denied (publickey).
fatal: Impossibile leggere dal repository remoto.

Assicurati di disporre dei privilegi d'accesso corretti
e che il repository esista.

this suggests that my keys are not good any more, but running

ssh-keygen -R aur.archlinux.org

my ~/.ssh/config is

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

could someone please suggest me what I'm doing wrong?

Last edited by ElMastro (2020-08-19 21:09:41)

Offline

#2 2020-08-15 18:32:44

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

Re: [solved]Problem with ssh authentication on AUR


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

Offline

#3 2020-08-15 18:36:27

loqs
Member
Registered: 2014-03-06
Posts: 11,923

Re: [solved]Problem with ssh authentication on AUR

graysky why would that cause

aur@aur.archlinux.org: Permission denied (publickey).

Offline

#4 2020-08-15 18:45:08

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

Re: [solved]Problem with ssh authentication on AUR

I read skimmed the post on my phone and saw the SHA256 hash which reminded me of https://lists.archlinux.org/pipermail/a … 30042.html and thought it was related.


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

Offline

#5 2020-08-15 19:43:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,027
Website

Re: [solved]Problem with ssh authentication on AUR

Mod note: not a pacman issue, moving to AUR Issues.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#6 2020-08-15 22:37:29

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,987

Re: [solved]Problem with ssh authentication on AUR

Make sure your public key is correct on your AUR account, with no extra linebreaks.

Offline

#7 2020-08-16 15:44:45

ElMastro
Member
Registered: 2015-12-02
Posts: 29

Re: [solved]Problem with ssh authentication on AUR

@graysky: Also I thought the same;
@Scimmia: my key is

cat .ssh/aur
-----BEGIN OPENSSH PRIVATE KEY----b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEA1oKiiFGhd38aJ8mBxVgIMgYLpVLXNEFePcBw4jzPPvJ8hC1ihVs3
cf6S1ImLIsX/cbhNVX/Ahc0+luYiDPh4Taop0IiYVLYmN+D6LPIpo/TxOjIs8nQV+1oJ4p
h3Ut7/FYQH1HBzlRhPZ2VcvHY57s9+bW9H5rcgPpC4s/OBYjU60e835s191lrmft/k3iQ6
15zELiFPT3luHYFZ+XsaA5iK0dJIoZ5ca3W90G3TwPpWNRyr+UWyle1sZVmRHAsWLRYOgN
p+PEQGmtmEIQuH0pjy894+5SUquPsuMO9nKjZE0B7IHuFlFDmCC0duzAXj3aien94dvYNL
Z8kNEjgBp4sL2186ChQg9NBVktLzcxICc9eJrkwPkdXpdPnAtiJQgu5jU6uS8xQxiCgDUZ
YX3XE/fri9YWnzg4rYg2xJ6OXcyv+2Ww27W3Dlh9351g3rZuJU4sInN0CI9WBm0jbug2Fe
yUu3zUELz3sUsxgonttFn3NJnCBEzfOnHlVHbq/lAAA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Btw6HWOjxyghWgQAA
AMEA4/MuaKFdpqL9Fju6bPtlk5MBMuuiRiZZNiBmyDAowaJmDiLYNdS5fU9ITUXPdgR36V
NCjiXFUQ+BzY3wmRdioE5UQSipGo9wOFRIsC1aCsr/0EZEJEKzVGsLEkKlWzidB0b9iobu
O0WsB2Xt30noFSlqfbuvjDIZgLTHXgxosYhIReGeyLjSvW68pTfwuPeBwRQV+deQhtK/9E
iNqYsaml250SUv0Dm+pAF+dSgRUp+WZkC1f1CRr0VtG8x0lKQ9AAAAwQDyo2L5MPnyoqWM
fqHtLZkwW65psYdbuuStWFGc9CY67IxKthrfoRupbyzXwQUPvBYRBYM8p8k/c+9pyoKGi7
sIQmqL+aMdwvBqM8rWXb722/e0irnlKw9jOtXgANJMCXAsLQDg1b6Fz6VkN4Tha23r7HD0
UsT9Q0Y3901a0GKHkBQIVkrEvsse+5y7bTph71SfxbAf3BQZIXEuLISHyfEEeurH3TW8GC
RfC41Tuibyaids3vD3nRweRKKdL24UxBsAAADBA
lxBNzoCHX0LWAnGE5I2v4jS/DEk/dhmxLxwsgA9lGlhWC2F4trApLk/h6q6L5mkeX5BWcq
gX4H2FvPEkstUv3iecM20jSPnwxw6MXwv17wM9yzvNExAi1WQnYC81XXL/mV90/Mtr0D5V
KsFvom/jKP08YAKALj3zvj+GX78RnrIU5NgfNXr0mItRRQFFyN9kdm+qRVo//947GDQDy/
h7GS94/UyPbDmb/wAAAA1yb290QGFyY2hiYW5nAQIDBA==

-----END OPENSSH PRIVATE KEY-----

(I removed a line for security reason)
It says private key, shouldn't it be public? It also ends with these two "==" characters, it is normal?

It is ok to use 'aur' as user as it is publiched in the wiki, or that is just an example?

Offline

#8 2020-08-16 15:51:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,027
Website

Re: [solved]Problem with ssh authentication on AUR

The private key should never leave your computer, the hint is in the name. You are supposed to copy the public key (i.e. id_rsa.pub) to your AUR profile.

EDIT: https://wiki.archlinux.org/index.php/AU … entication

Last edited by WorMzy (2020-08-16 15:52:44)


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#9 2020-08-16 18:11:59

loqs
Member
Registered: 2014-03-06
Posts: 11,923

Re: [solved]Problem with ssh authentication on AUR

As you gave out over 95% of the private key,  I would suggest generating a new key pair.

Offline

#10 2020-08-18 09:41:42

ElMastro
Member
Registered: 2015-12-02
Posts: 29

Re: [solved]Problem with ssh authentication on AUR

@loqs: thank you for the suggestion, I already did it yesterday.

I would like to know, in my profile on the AUR site I should insert the ElMastro.pub key?
And so modify the ~/.ssh/config file with the ElMastro user, so that I can login with

ssh ElMastro@aur.archlinux.org

,
is that correct?

Offline

#11 2020-08-18 09:57:01

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 996
Website

Re: [solved]Problem with ssh authentication on AUR

No. There's a generic SSH / Git user for the AUR called aur.
The user context is identified by the SSH pubkey.

And to emphasize it again:
Do not use the private key you posted above anymore, anywhere, ever.

Last edited by schard (2020-08-18 09:58:51)

Offline

#12 2020-08-19 21:08:22

ElMastro
Member
Registered: 2015-12-02
Posts: 29

Re: [solved]Problem with ssh authentication on AUR

Thank you schard (and to the other also), this helped me a lot:
I regenerated the key, changed the .ssh/config accordingly, copied the key in my profile and now

$ ssh aur@aur.archlinux.org
PTY allocation request failed on channel 0
Interactive shell is disabled.
Try `ssh aur@aur.archlinux.org help` for a list of commands.
Connection to aur.archlinux.org closed.

it seems to work.

Offline

Board footer

Powered by FluxBB