Hi,
First of all, I have been loving Codeberg for a few years now! ❤️ But unfortunately now I have to create this issue :(
While pushing few commits to my gitops repo, I noticed that I started just getting an error:
Connection closed by 217.197.84.140 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
While troubleshooting this issue as it did not go away itself after few minutes I made the following observations:
- My workstation is not the issue, my ArgoCD instance is not able to sync the repo either
- This is not my home network issue, my ArgoCD instance has completely different public IP than my workstation
- I can also run
nc -vzw2 codeberg.org 22 succesfully, so there probably is no IP ban?
- I can clone my own public repositories with
git clone ssh://git@codeberg.org/<user>/<repository>.git so it seems like SSH works fine for those
- When running
ssh git@codeberg.org -v 5 I see that the connection is made but KEX fails, see below for detailed error
debug1: Connecting to codeberg.org [217.197.84.140] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 0
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: identity file /home/user/.ssh/id_ed25519-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk type 12
debug1: identity file /home/user/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/user/.ssh/id_xmss type -1
debug1: identity file /home/user/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.9
kex_exchange_identification: Connection closed by remote host
Connection closed by 217.197.84.140 port 22
I am running out of ideas here. Could it be that I am rate limited? I believe the ArgoCD syncs the data from this private repo every 5 mins and has probably 20 subcalls for every "application". And as I am still developing I can imagine I am producing multiple hunders of git SSH operations every hour, both from my ArgoCD instance and also from my workstation.
### Comment
Hi,
First of all, I have been loving Codeberg for a few years now! ❤️ But unfortunately now I have to create this issue :(
While pushing few commits to my gitops repo, I noticed that I started just getting an error:
```
Connection closed by 217.197.84.140 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
While troubleshooting this issue as it did not go away itself after few minutes I made the following observations:
- My workstation is not the issue, my ArgoCD instance is not able to sync the repo either
- This is not my home network issue, my ArgoCD instance has completely different public IP than my workstation
- I can also run `nc -vzw2 codeberg.org 22` succesfully, so there probably is no IP ban?
- I can clone my own public repositories with `git clone ssh://git@codeberg.org/<user>/<repository>.git` so it seems like SSH works fine for those
- When running `ssh git@codeberg.org -v 5` I see that the connection is made but KEX fails, see below for detailed error
```
debug1: Connecting to codeberg.org [217.197.84.140] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 0
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type -1
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/user/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519 type -1
debug1: identity file /home/user/.ssh/id_ed25519-cert type -1
debug1: identity file /home/user/.ssh/id_ed25519_sk type 12
debug1: identity file /home/user/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/user/.ssh/id_xmss type -1
debug1: identity file /home/user/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.9
kex_exchange_identification: Connection closed by remote host
Connection closed by 217.197.84.140 port 22
```
I am running out of ideas here. Could it be that I am rate limited? I believe the ArgoCD syncs the data from this private repo every 5 mins and has probably 20 subcalls for every "application". And as I am still developing I can imagine I am producing multiple hunders of git SSH operations every hour, both from my ArgoCD instance and also from my workstation.