Git clone with ssh doesn't work

I hope this explains my issue:

Try to clone my app

PS C:\Users\michael\repositories\app> git clone git@
Cloning into 'app'...
git@'s password:

Testing ssh success

PS C:\Users\michael\repositories\app> ssh git@
PTY allocation request failed on channel 0
Hi there, michael! You've successfully authenticated with the key named TestKey, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
Connection to closed.

Only way to successfully clone is by specifying my key manually

 git clone -c core.sshCommand="ssh -i 'C:\Users\michael\.ssh\id_rsa'" git@

Has anyone else ran into this issue? It’s almost as if git isn’t using the Windows ssh-agent Any advice would be appreciated.

  1. check shell of the user, it should be create with:
    *–shell /bin/bash *
  2. RSA keys, they also should be in home directory of your git user like: /home/git/.ssh

I sow you got a password, so i think there is no rsa key or they are with wrong directory (options)