You are not logged in.

#1 2015-06-08 20:10:17

dfryer1193
Member
From: Westford, MA, USA
Registered: 2013-09-23
Posts: 4
Website

Problems cloning aur4 repo for migration

I'm trying to migrate a package I maintain to AUR4, but when I try to clone the aur4 repo, I get the following:

git clone ssh://aur@aur4.archlinux.org/aerofs.git
Cloning into 'aerofs'...
ssh: connect to host aur4.archlinux.org port 22: Network is unreachable
fatal: Could not read from remote repository.

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

I have generated a new key called id_rsa-aur and edited the ssh config accordingly.
I have also added the contents of id_rsa-aur.pub to the SSH Public Key field under "My Account"

What am I missing?

Offline

#2 2015-06-08 20:25:45

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,614
Website

Re: Problems cloning aur4 repo for migration

ssh: connect to host aur4.archlinux.org port 22: Network is unreachable

Seems you're not connected to a network. Are you using the same machine to post on the forums? How do you connect to the network, and what nameservers are you using?

Mod note: tentatively moving this to networking, server and protection.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-08 20:32:06

dfryer1193
Member
From: Westford, MA, USA
Registered: 2013-09-23
Posts: 4
Website

Re: Problems cloning aur4 repo for migration

WorMzy wrote:

ssh: connect to host aur4.archlinux.org port 22: Network is unreachable

Seems you're not connected to a network. Are you using the same machine to post on the forums? How do you connect to the network, and what nameservers are you using?

Mod note: tentatively moving this to networking, server and protection.

I am using this same machine to post on the forums. I'm connected via ethernet. I just realized that I have the same problem with github, I'm guessing that ssh traffic outside of the network I'm on is being filtered.

Cloning using https works fine on both aur4 and github. I'll try again a little later from a different machine on a different network and mark as solved if that works.

Offline

#4 2015-06-08 20:38:13

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

Re: Problems cloning aur4 repo for migration

You should be able to run a simple shell-free ssh connection, so use that to debug it. It may simply be that your ssh port is somehow blocked.

% cat ~/.ssh/config 
Host aur4.archlinux.org
   IdentityFile ~/.ssh/id_aur
   User aur

% ssh aur4.archlinux.org help
Enter passphrase for key '/home/progandy/.ssh/id_aur': 
Commands:
  help                 Show this help message and exit.
  list-repos           List all your repositories.
  setup-repo <name>    Create an empty repository.
  git-receive-pack     Internal command used with Git.
  git-upload-pack      Internal command used with Git.

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

Offline

#5 2015-06-10 08:27:54

blowback
Member
From: Japan
Registered: 2008-11-03
Posts: 18

Re: Problems cloning aur4 repo for migration

Same for me.
I can connect sourceforge and launchpad using ssh on same machine, though.

Offline

#6 2015-06-12 07:15:06

andya
Member
Registered: 2014-10-20
Posts: 10

Re: Problems cloning aur4 repo for migration

Same here

Offline

#7 2015-06-13 08:33:56

blowback
Member
From: Japan
Registered: 2008-11-03
Posts: 18

Re: Problems cloning aur4 repo for migration

I found cause of my issue.
Dropping the following line from /etc/iptables/iptables.rules solves:

-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable

This is taken for instance on ArchWiki.
I don't know why my issue occurs only on archlinux.org (other ssh connecting have always worked fine e.g. sourceforge, launchpad or github).

Last edited by blowback (2015-06-13 08:41:24)

Offline

#8 2015-06-13 08:42:04

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Problems cloning aur4 repo for migration

That's interesting; could you modify that from -j REJECT to -j LOG and post what is being logged? Since git uses an outgoing tcp connection it shouldn't trigger a rule for incoming udp connections wink

Offline

#9 2015-06-13 10:33:42

blowback
Member
From: Japan
Registered: 2008-11-03
Posts: 18

Re: Problems cloning aur4 repo for migration

Spider.007 wrote:

That's interesting; could you modify that from -j REJECT to -j LOG and post what is being logged? Since git uses an outgoing tcp connection it shouldn't trigger a rule for incoming udp connections wink

I was wrong.
My issue caused by pgl (edit iptables.rules => restart iptables => pgl's rules are cleared).
After stopping pgl, ssh connection to archlinux.org works fine.

Offline

Board footer

Powered by FluxBB