Git and Xcode not working

Hello everybody,

I have a project, which is under version control. I don't know when this happened, but now I can't push oder clone anymore.
There is an error message: Unknown error - failed to start SSH session: Unable to exchange encryption keys (-1)

In terminal everything is working fine. So I don't know, what is going wrong.
Can anybody help me ?

I don't know what to do and I am new to MacOS.
I already had several problems with Xcode. Twice it could not load anymore and crashed ... I did something. Don't know what (something with Spotlight), now I can start Xcode again.
I am a little bit disappointed.

Thanx for help.

(Xcode git: ssh://user@server:port/git-repo)

Which version of libssh uses Xcode ?

Everything is really annoying.
Accepted Answer
So I solved the problem. Xcode can't handle some key encryption like Ed25519.
So I changed the host key to RSA again, deleted the HostKey in Xcode and now it works again.

You can't change the encryption key in Xcode. You need to change on server.

Xcode Does not accept Ed25519, from today 15th of March you can't use RSA anymore, I have created an stackoverflow post: https://stackoverflow.com/questions/71495130/xcode-cant-handle-key-encryption-ed25519

Git and Xcode not working
 
 
Q