I kept getting "Connection closed" from @Codeberg when trying to git push.
I just added this to my SSH config:
```
Host *
IdentitiesOnly yes
Host codeberg.org
Hostname codeberg.org
User git
IdentityFile ~/.ssh/[my key]
```
Turns out SSH appears to even offer other keys when a specific identity file is configured, unless you also say IdentitiesOnly; weird, but whatever, that finally helped me push again.
Shared here: https://codeberg.org/Codeberg/Community/issues/2672#issuecomment-27993555
cc @codebergstatus
Another confusing bit about the SSH config:
Host and Hostname.
So IIUC, Host can define a hostname directly, but more generally, it gives a pattern (reference to other section...).
The Hostname given underneath a Host:
"Specifies the real host name to log into."
But also:
"This can be used to specify nicknames or abbreviations for hosts."
https://man.openbsd.org/ssh_config#Hostname
Whatever, I simply only use Host. Too complicated. 😵💫
I don't want a PhD in SSH. Just have safe defaults.
ssh_config(5) - OpenBSD manual pages