You are not logged in.

#1 2021-10-13 16:30:02

Remty
Member
Registered: 2021-01-20
Posts: 2

[SOLVED] aurweb - Can't add SSH public key

I'm trying to add the following SSH public key for my hardware security key to my AUR account.

sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMPNBVSufjjcnP8QN4nTQzpvXuBmu0l8c96PDcXM9+lnAAAABHNzaDo=

But it gives me:
▪ The SSH public key is invalid.
I searched around a bit but can't seem to find a reason why it doesn't work. I've also tried with another browser (Firefox) and still nothing.
However, using the SSH public key for the GPG agent of my security key it works:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbCfEaw8RiOoyjg99QqVv8yqd31hfYc7d23UrDlA/u5KYPbhB3KC6RsCzMQXaZMfn/sa/Fxy7XgZ+LGpeStqe0/1710UwXgLTC5MOSkSEkJjDkCdu1x9/YEvTTJa1wGJjJca8gN85PHMlzstTE8EoGMO9v6nna/y3eG06x2jrBWFPm/hz4iKncxIER1sqnzLcQMqvFcbPJZhJCK8kdIMK1M6gSksLkPUFj/rT7+dn4QKKfbQxrwVYgmXs296knmy/gkXyNCrZRiMZ2E3TP0t3emqkQgerhL2qwD8ZlXyLHWB2wM/O4rTbawiX3zPV/8f5BiivnsJ3YWto4IP06DcMKCMdnh399m+ROMAiqcHEQ7fXBO11NUai8Rh5vu1Xe51apauThMb+wyw+w51+tIlH6fiubhAZoKwG8SUrd0ZbA7FmuibXkygqume3XLEuNSY6DHR2jhRgduxOAcJWptUh5dsrPRlVu912mDSyzXM8SDxAbE1BzjAbJB6wOwQkn0qtq7MHMO0cuZGF7zvu4CBEVGu2EcMUPqDqZwGbCw9QaFJkFeo6bk7DfTTLyXhH+bTYI1ZhRL+80rveooWp6kaWBhM+8piBptJ7pgjKrSHol5WIRLx2E5G/tfJDhXX4uDC5rqvYouwjk1RpHtnFasI9/hEEALLVarScNl6W5KqD1Ow==

I've also tried looking through aurweb's code, and I found the code responsible for checking the SSH keys, but I realized I can't read PHP and probably wouldn't be able to identify any problem and after all it's probably a me problem.

Anyone has any tips?

Last edited by Remty (2021-10-13 17:12:33)

Offline

#2 2021-10-13 16:45:22

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [SOLVED] aurweb - Can't add SSH public key

The key is verified here, and the security key variants were not allowed 4 months ago. https://gitlab.archlinux.org/archlinux/ … c.php#L870
That code has changed since, but I am not sure if the AUR uses the most recent version yet and what the config is. I'll look further.
https://gitlab.archlinux.org/archlinux/ … faults#L64

Edit: For now, the live AUR  is still using an older aurweb release, the dev version that allows ssh-sk is not deployed yet, maybe it is still not ready.
https://gitlab.archlinux.org/archlinux/ … c.php#L870

Last edited by progandy (2021-10-13 17:17:39)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-10-13 17:11:43

Remty
Member
Registered: 2021-01-20
Posts: 2

Re: [SOLVED] aurweb - Can't add SSH public key

Thanks for taking the time and looking it up!
I guess we'll patiently wait.
I'll mark as solved as there isn't a problem.

Offline

Board footer

Powered by FluxBB