SSH to AUR suddenly stops working: fatal: Could not read from remote repository

, ,

I’m a maintainer of several AUR packages, and when I tried to update the AUR package via GIT today, it gave me the following error message:

$ git push
Connection closed by 95.216.144.15 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I’m definitely sure I correctly configured the SSH config file as below:

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

And I already copied the public key to my AUR profile.
I tried to clone the repository (AUR (en) - agisoft-metashape) but got the same error message:

$ git clone ssh://aur@aur.archlinux.org/agisoft-metashape.git
Cloning into 'agisoft-metashape'...
Connection closed by 95.216.144.15 port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

I set up a similar authentication with GitHub and all the git methods seem to work, so I’m sure it’s not a malfunction GIT or SSH issue on my machine.

Here’s the debug message for SSH to AUR:

$ ssh -v aur@aur.archlinux.org
OpenSSH_8.7p1, OpenSSL 1.1.1l  24 Aug 2021
debug1: Reading configuration data /home/o0331dobe/.ssh/config
debug1: /home/o0331dobe/.ssh/config line 1: Applying options for aur.archlinux.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to aur.archlinux.org [95.216.144.15] port 22.
debug1: Connection established.
debug1: identity file /home/o0331dobe/.ssh/aur type 0
debug1: identity file /home/o0331dobe/.ssh/aur-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.7
debug1: compat_banner: match: OpenSSH_8.7 pat OpenSSH* compat 0x04000000
debug1: Authenticating to aur.archlinux.org:22 as 'aur'
debug1: load_hostkeys: fopen /home/o0331dobe/.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: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
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
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection closed by 95.216.144.15 port 22

Could someone please enlighten me on what’s wrong with it?
Cheers

Hm, As the package in your example is on the AUR page I am wondering if maybe your User has been removed? I can’t click on your username on the webpage.

Can you login to the AUR webpage?

PS: I just updated one of my AUR packages today, so the site is still working fine.

Hi,
Yes, I can log in to the AUR webpage. I found that it’s not just the AUR’s issue. I can’t even post on the Manjaro forum and create a Zoom meeting invitation today for some reason. The only solution I found is I have to connect to some VPN (I use NordVPN) to do these tasks. I just push my AUR change with a VPN connection. This is really strange.

That does point to a misconfiguration on your network. :slight_smile:

Thank you. Could you please give me some hint that where should I start for investigation? I found the internet is really slow today but I didn’t change anything. I even rebooted my network router today but didn’t help.
Here’s my system information

摘要
System:
  Kernel: 5.10.60-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: initrd=\amd-ucode.img initrd=\intel-ucode.img 
  initrd=\initramfs-5.10-x86_64.img zfs=zroot/manjaro/root rw 
  bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash 
  Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop System: Micro-Star product: MS-7C37 v: 3.0 serial: <filter> 
  Mobo: Micro-Star model: X570-A PRO (MS-7C37) v: 3.0 serial: <filter> 
  UEFI: American Megatrends LLC. v: H.D4 date: 04/09/2021 
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
  Device-2: hidpp_battery_1 model: Logitech Wireless Keyboard serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:
  Info: 8-Core model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3 
  family: 19 (25) model-id: 21 (33) stepping: 0 microcode: A201009 cache: 
  L2: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 121655 
  Speed: 2793 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 
  1: 2793 2: 2240 3: 2232 4: 2259 5: 2235 6: 2234 7: 2233 8: 2231 9: 2240 
  10: 2518 11: 2238 12: 2235 13: 2237 14: 2235 15: 2793 16: 2238 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: always-on, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: Gigabyte driver: nvidia 
  v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 2d:00.0 
  chip-ID: 10de:1e82 class-ID: 0300 
  Device-2: Logitech Webcam C930e type: USB driver: snd-usb-audio,uvcvideo 
  bus-ID: 1-2:3 chip-ID: 046d:0843 class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3840x2160 s-dpi: 159 s-size: 613x352mm (24.1x13.9") 
  s-diag: 707mm (27.8") 
  Monitor-1: DP-0 res: 3840x2160 hz: 60 dpi: 161 size: 607x345mm (23.9x13.6") 
  diag: 698mm (27.5") 
  OpenGL: renderer: NVIDIA GeForce RTX 2080/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA TU104 HD Audio vendor: Gigabyte driver: snd_hda_intel 
  v: kernel bus-ID: 2d:00.1 chip-ID: 10de:10f8 class-ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI X570-A PRO 
  driver: snd_hda_intel v: kernel bus-ID: 2f:00.4 chip-ID: 1022:1487 
  class-ID: 0403 
  Device-3: Logitech Webcam C930e type: USB driver: snd-usb-audio,uvcvideo 
  bus-ID: 1-2:3 chip-ID: 046d:0843 class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.10.60-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.33 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI X570-A PRO driver: r8169 v: kernel port: d000 
  bus-ID: 27:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp39s0 state: down mac: <filter> 
  Device-2: Edimax Edimax AC1750 USB type: USB driver: 8814au bus-ID: 1-1:2 
  chip-ID: 7392:a833 class-ID: 0000 serial: <filter> 
  IF: wlp42s0f1u1 state: up mac: <filter> 
  IF-ID-1: vpn0 state: up speed: 10 Mbps duplex: full mac: N/A 
RAID:
  Supported mdraid levels: raid1 
  Device-1: md127 maj-min: 9:127 type: mdraid level: mirror status: active 
  size: 513.9 MiB 
  Info: report: 2/2 UU blocks: 526272 chunk-size: N/A super-blocks: 1.0 
  Components: Online: 
  0: nvme0n1p1 maj-min: 259:5 size: 514 MiB 
  1: nvme1n1p1 maj-min: 259:1 size: 514 MiB 
  Device-2: zbigdata type: zfs status: ONLINE level: linear raw: 
  size: 1.81 TiB free: 1.09 TiB allocated: 742 GiB zfs-fs: size: 1.76 TiB 
  free: 1.03 TiB 
  Components: Online: 
  1: sdb maj-min: 8:16 size: 1.82 TiB 
  Device-3: zhome type: zfs status: ONLINE level: linear raw: size: 464 GiB 
  free: 333 GiB allocated: 131 GiB zfs-fs: size: 449.62 GiB free: 318.36 GiB 
  Components: Online: 
  1: sda maj-min: 8:0 size: 465.76 GiB 
  Device-4: zroot type: zfs status: ONLINE level: mirror raw: size: 920 GiB 
  free: 720 GiB allocated: 200 GiB zfs-fs: size: 891.5 GiB free: 691.25 GiB 
  Components: Online: 
  1: nvme0n1p3 maj-min: 259:7 size: 921.01 GiB 
  2: nvme1n1p3 maj-min: 259:3 size: 921.01 GiB 
Drives:
  Local Storage: total: raw: 4.09 TiB usable: 5.35 TiB used: 1.05 TiB (19.6%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:4 vendor: Corsair model: Force MP600 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s 
  lanes: 4 type: SSD serial: <filter> rev: EGFM13.0 temp: 35.9 C scheme: GPT 
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Corsair model: Force MP600 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s 
  lanes: 4 type: SSD serial: <filter> rev: EGFM13.0 temp: 31.9 C scheme: GPT 
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB 
  size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 1B6Q scheme: GPT 
  ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DX002-2DV164 
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT 
Partition:
  ID-1: / raw-size: N/A size: 891.46 GiB used: 200.2 GiB (22.5%) fs: zfs 
  logical: zroot/manjaro/root 
  ID-2: /boot raw-size: 512.9 MiB size: 511.9 MiB (99.80%) 
  used: 122.7 MiB (24.0%) fs: vfat dev: /dev/md127p1 maj-min: 259:8 
  ID-3: /home raw-size: N/A size: 449.58 GiB used: 131.22 GiB (29.2%) fs: zfs 
  logical: zhome/manjaro/home 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 10 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p2 maj-min: 259:6 
  ID-2: swap-2 type: partition size: 10 GiB used: 0 KiB (0.0%) priority: -3 
  dev: /dev/nvme1n1p2 maj-min: 259:2 
Sensors:
  System Temperatures: cpu: 38.4 C mobo: 32.0 C gpu: nvidia temp: 45 C 
  Fan Speeds (RPM): fan-1: 1235 fan-2: 2360 fan-3: 814 fan-4: 594 fan-5: 0 
  fan-6: 0 fan-7: 1189 gpu: nvidia fan: 0% 
Info:
  Processes: 587 Uptime: 42m wakeups: 10 Memory: 15.61 GiB 
  used: 7.11 GiB (45.5%) Init: systemd v: 248 tool: systemctl Compilers: 
  gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1614 lib: 376 Shell: Bash 
  v: 5.1.8 running-in: yakuake inxi: 3.3.06

Hi,
Turning out that there was some network infrastructure maintenance in our university. I just tried the same git clone command without a VPN connection minutes ago and it seems working now.
Sorry for the interruption. :joy: I should have read all the announcement emails.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.