You are not logged in.

#1 2022-11-27 22:49:17

ANTONI
Member
Registered: 2020-04-10
Posts: 19

Can't clone AUR repository. Dumb ssh sending all keyfiles.

Good afternoon,

I found a cool project I would want to use (kyua), which sadly, is not packaged for Arch.
I wrote PKGBUILD for it, and also for one dependency of this program (lutok). Since it's very
useful I decided to submit this package to AUR.

I have already done this before. However, don't remember how exactly. The problem
was that I was not able to clone the repository. git refused with:

Klonowanie do „lutok”...  // Cloning to "lutok" ...
ssh: connect to host aur.archlinux.org port 22: Network is unreachable
fatal: Nie można czytać ze zdalnego repozytorium. // fatal: Could not read from remote repository

Upewnij się, że masz odpowiednie prawa dostępu // Make sure, you have right access permissions
i że repozytorium istnieje. // and repository exists.

After running "ssh -vvv aur.archlinux.org" command, I realized, that ssh is not trying
to use "~/.ssh/aur". It's trying to access non-existing id_rsa, id_ecdsa, ...

Even though I used "IdentitiesOnly=yes" option in my configuration:

Host aur
	HostName aur.archlinux.org
        User aur
	IdentitiesOnly=yes
	IdentityFile /home/notroot/.ssh/aur

1. What's your ssh configuration for AUR?
2. I tried different configurations a lot of times and it looks like I got banned (ping returns "Destination Port Unreachable"). What should I do to have my ban removed.

Offline

#2 2022-11-27 22:58:58

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Can't clone AUR repository. Dumb ssh sending all keyfiles.

ANTONI wrote:

1. What's your ssh configuration for AUR?

Host aur
HostName aur.archlinux.org
User aur
IdentityFile ...
PubkeyAuthentication yes
PasswordAuthentication no
PreferredAuthentications publickey
Compression yes
Protocol 2
ANTONI wrote:

2. I tried different configurations a lot of times and it looks like I got banned (ping returns "Destination Port Unreachable"). What should I do to have my ban removed.

Your account has not been suspended.

ANTONI wrote:
ssh: connect to host aur.archlinux.org port 22: Network is unreachable

Are you able to connect to other servers on port 22? Your ISP may be blocking the port.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2022-11-27 23:00:22

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

Re: Can't clone AUR repository. Dumb ssh sending all keyfiles.

first off, LC_ALL=C, and post full, untranslated logs.

Now if you've had multiple failures, yes, you're going to have a temporary ban. Should be 24 hours, IIRC. You can try #archlinux-devops on libera if you want it done manually sooner.

As for the config, https://wiki.archlinux.org/title/AUR_su … entication

Offline

#4 2022-11-27 23:21:43

ANTONI
Member
Registered: 2020-04-10
Posts: 19

Re: Can't clone AUR repository. Dumb ssh sending all keyfiles.

Xyne wrote:

Are you able to connect to other servers on port 22? Your ISP may be blocking the port.

Yes.

Scimmia wrote:

As for the config, https://wiki.archlinux.org/title/AUR_su … entication

This config did not work for me, I added IdentitiesOnly=yes option, it still did not work.

Edit:
I have many keys in ~/.ssh/ directory. I always need to add IdentitiesOnly=yes, otherwise ssh will send all found keys in random order.

Last edited by ANTONI (2022-11-27 23:24:22)

Offline

#5 2022-11-28 08:02:24

ANTONI
Member
Registered: 2020-04-10
Posts: 19

Re: Can't clone AUR repository. Dumb ssh sending all keyfiles.

Here are the logs:

[notroot@antoni AUR]$ LC_ALL=C git clone ssh://aur@aur.archlinux.org/lutok.git
Cloning into 'lutok'...
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.
[notroot@antoni AUR]$ LC_ALL=C ssh -vvv aur.archlinux.org
OpenSSH_9.1p1, OpenSSL 3.0.7 1 Nov 2022
debug1: Reading configuration data /home/notroot/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/notroot/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/notroot/.ssh/known_hosts2'
debug2: resolving "aur.archlinux.org" port 22
debug3: resolve_host: lookup aur.archlinux.org:22
debug3: ssh_connect_direct: entering
debug1: Connecting to aur.archlinux.org [95.216.144.15] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /home/notroot/.ssh/id_rsa type -1
debug1: identity file /home/notroot/.ssh/id_rsa-cert type -1
debug1: identity file /home/notroot/.ssh/id_ecdsa type -1
debug1: identity file /home/notroot/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/notroot/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/notroot/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/notroot/.ssh/id_ed25519 type -1
debug1: identity file /home/notroot/.ssh/id_ed25519-cert type -1
debug1: identity file /home/notroot/.ssh/id_ed25519_sk type -1
debug1: identity file /home/notroot/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/notroot/.ssh/id_xmss type -1
debug1: identity file /home/notroot/.ssh/id_xmss-cert type -1
debug1: identity file /home/notroot/.ssh/id_dsa type -1
debug1: identity file /home/notroot/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.1
debug1: compat_banner: match: OpenSSH_9.1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to aur.archlinux.org:22 as 'notroot'
debug3: record_hostkey: found key type ED25519 in file /home/notroot/.ssh/known_hosts:32
debug3: load_hostkeys_file: loaded 1 keys from aur.archlinux.org
debug1: load_hostkeys: fopen /home/notroot/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:RFzBCUItH9LZS0cKB5UE6ceAYhBD5C8GeOBip8Z11+4
debug3: record_hostkey: found key type ED25519 in file /home/notroot/.ssh/known_hosts:32
debug3: load_hostkeys_file: loaded 1 keys from aur.archlinux.org
debug1: load_hostkeys: fopen /home/notroot/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'aur.archlinux.org' is known and matches the ED25519 host key.
debug1: Found key in /home/notroot/.ssh/known_hosts:32
debug3: send packet: type 21
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/notroot/.ssh/id_rsa 
debug1: Will attempt key: /home/notroot/.ssh/id_ecdsa 
debug1: Will attempt key: /home/notroot/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /home/notroot/.ssh/id_ed25519 
debug1: Will attempt key: /home/notroot/.ssh/id_ed25519_sk 
debug1: Will attempt key: /home/notroot/.ssh/id_xmss 
debug1: Will attempt key: /home/notroot/.ssh/id_dsa 
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com=<0>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/notroot/.ssh/id_rsa
debug3: no such identity: /home/notroot/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_ecdsa
debug3: no such identity: /home/notroot/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_ecdsa_sk
debug3: no such identity: /home/notroot/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_ed25519
debug3: no such identity: /home/notroot/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_ed25519_sk
debug3: no such identity: /home/notroot/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_xmss
debug3: no such identity: /home/notroot/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /home/notroot/.ssh/id_dsa
debug3: no such identity: /home/notroot/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
notroot@aur.archlinux.org: Permission denied (publickey).

Offline

#6 2022-11-28 08:17:51

ANTONI
Member
Registered: 2020-04-10
Posts: 19

Re: Can't clone AUR repository. Dumb ssh sending all keyfiles.

I solved this problem. It looks like ssh is not recognizing aur.archlinux.org host if there is entry for it with another name.

I had to change:

Host aur

to

Host aur.archlinux.org

in my config file.

Offline

Board footer

Powered by FluxBB