Git cannot be used to connect to gitlab. in idea

problem description

my gitlab has been configured with a public key. Testing ssh-t "git address" in git bash shows correct, but testing ssh-T in idea prompts
Permission denied (publickey).

the platform version of the problem and what methods you have tried

window 10Magneidea 2018, reconfigure the public key yourself but can"t use it in idea, but git bash

related codes

/ / Please paste the code text below (do not replace the code with pictures)

clipboard.png

this is the

displayed in git bash.

F:cgworkspacecogo > ssh-T git@gitlab.com
git@gitlab.com: Permission denied (publickey).

this is the problem shown in idea

what result do you expect? What is the error message actually seen?

you can also submit code and associated gitlab in idea

Git
Apr.20,2021
Menu