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@192.168.10.1:michael/app.git
Cloning into 'app'...
git@192.168.10.1's password:

Testing ssh success

PS C:\Users\michael\repositories\app> ssh git@192.168.10.1
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 192.168.10.1 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@192.168.10.1:michael/app.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:
    adduser
    *–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)