Hi there,
i’d like to share my experience with ssh authentication failures.
To be specific. I had this error. not always, but pretty persistent.
Received disconnect from xxx.xxx.xxx.xxx port xxx:2: too many authentication failures
Disconnected from xxx.xxx.xxx.xxx port xxx
fatal: Could not read from remote repository.
The error occurred on a newly installed development pc.
I mirgrated the ssh keys from another device, where everything is working just fine.
All my other ssh connection where working just fine. But gittea gave this error.
I created a new ssh keypair and it worked. At least for a while.
After searching the internet for a while i stumbled across IdentitiesOnly
ssh setting.
Enabling this revealed the acctual problem.
ssh mydomain
no such identity: /home/xxx/id_xxxx: No such file or directory
git@mydomain: Permission denied (publickey).
ssh was not using my defined Entity “IdentiyFile” at all. it was trying every key in the ssh keychange.
Obviously I made a mistake changing the paths.
Hours of searching for a fix. It was ME forgetting the .ssh part in my local ssh config.
just wanted to share a possible solution for this.