You are not logged in.

#1 2022-11-03 13:46:38

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

[Solved] Cannot ssh aur, what happened?

❯ ssh -vvv aur@aur.archlinux.org help
OpenSSH_9.1p1, OpenSSL 1.1.1q  5 Jul 2022
debug1: Reading configuration data /home/wzy/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/wzy/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/wzy/.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 [2a01:4f9:c010:50::1] port 22.
debug3: set_sock_tos: set socket 3 IPV6_TCLASS 0x48
debug1: Connection established.
debug1: identity file /home/wzy/.ssh/id_rsa type 0
debug1: identity file /home/wzy/.ssh/id_rsa-cert type -1
debug1: identity file /home/wzy/.ssh/id_ecdsa type -1
debug1: identity file /home/wzy/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/wzy/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/wzy/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/wzy/.ssh/id_ed25519 type -1
debug1: identity file /home/wzy/.ssh/id_ed25519-cert type -1
debug1: identity file /home/wzy/.ssh/id_ed25519_sk type -1
debug1: identity file /home/wzy/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/wzy/.ssh/id_xmss type -1
debug1: identity file /home/wzy/.ssh/id_xmss-cert type -1
debug1: identity file /home/wzy/.ssh/id_dsa type -1
debug1: identity file /home/wzy/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.1
kex_exchange_identification: Connection closed by remote host
Connection closed by 2a01:4f9:c010:50::1 port 22

Last edited by Freed (2022-11-18 10:52:02)


An adherent of hacker culture and open source.

Offline

#2 2022-11-06 15:28:08

mmdbalkhi
Member
Registered: 2021-11-18
Posts: 6
Website

Re: [Solved] Cannot ssh aur, what happened?

Did you add your ssh-key?

first, create your ssh-key

 ssh-keygen -f ~/.ssh/aur

then edit config file( ~/.ssh/config ):

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

of course, you need to add, your ssh public key to your aur profile.(https://aur.archlinux.org)

based on: https://wiki.archlinux.org/title/AUR_su … entication

Offline

#3 2022-11-12 13:13:39

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

Re: [Solved] Cannot ssh aur, what happened?

It seems to be related to proxy, because I found I also cannot `ssh git@github.com`, together with `ssh aur@aur.archlinux.org`. I test in my another device:

❯ ssh git@github.com
PTY allocation request failed on channel 0
Hi XXX! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
# enable proxy
❯ ssh git@github.com
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22

However, in this machine, I have stopped proxy by `sudo systemctl stop v2raya`, but it still cannot work.

Last edited by Freed (2022-11-12 13:14:04)


An adherent of hacker culture and open source.

Offline

#4 2022-11-12 13:48:16

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

Re: [Solved] Cannot ssh aur, what happened?

I change network, copy id_rsa from the device which can `ssh aur.archlinux.org` to this machine, `sudo pacman -Syu`, but all of them cannot work.


An adherent of hacker culture and open source.

Offline

#5 2022-11-12 15:46:46

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

Re: [Solved] Cannot ssh aur, what happened?

https://docs.github.com/cn/authenticati … https-port

ssh over https can work, ssh cannot work.

❯ ssh -T ssh.github.com
Hi Freed-Wu! You've successfully authenticated, but GitHub does not provide shell access.
❯ ssh -T github.com
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
Host github.com
  User git

# https://docs.github.com/cn/authentication/troubleshooting-ssh/using-ssh-over-the-https-port
Host ssh.github.com
  User git
  Port 443

An adherent of hacker culture and open source.

Offline

#6 2022-11-12 15:51:05

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

Re: [Solved] Cannot ssh aur, what happened?

Sometimes, firewalls refuse to allow SSH connections entirely.

How to enable ssh for firewall in archlinux?


An adherent of hacker culture and open source.

Offline

#7 2022-11-18 10:51:44

Freed
Member
From: China
Registered: 2020-02-01
Posts: 56
Website

Re: [Solved] Cannot ssh aur, what happened?

Because it is not aur's bug. I'll open a new post to ask what happened in my ssh.


An adherent of hacker culture and open source.

Offline

Board footer

Powered by FluxBB