You are not logged in.
❯ 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
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
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
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
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
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
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