You are not logged in.
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
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
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
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
Same for me.
I can connect sourceforge and launchpad using ssh on same machine, though.
Offline
Same here
Offline
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
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
Offline
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
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