SSH connection not working, says `Too many authentication failures` in Wayland session. X11 work like a charm

STEPS TO REPRODUCE

  1. Login to Wayland session
  2. Open Konsole
  3. Try login to server w/ ssh and key file, f.e. ssh -i /path/to/key.pem root@<ip> -p 22

OBSERVED RESULT
Received disonnect from <ip> port 22:2: Too many authentication failures

EXPECTED RESULT
Enter passphrase for key '/path/to/key.pem': - in X11 session

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.7.12-x64v4-xanmod1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
This bug was on Plasma 5 too

Bug 489336 – SSH connection with key not working in Wayland session

“Too many authentication failures” is an error most often caused - for me - when I have too many keys loaded into the agent. What does ssh-add -l look for you?

On my wayland session, without SSH_ASKPASS_REQUIRE=force I get the passphrase prompt in the terminal, and with it I get a ksshaskpass prompt - so it looks working according to what MSS said in the bug report.

If you use -v option for SSH, can you report what it shows after the Server accepts key debug message?

Yep, there was list w/ 6 different keys. Move ~/.ssh and it works! Thank you for tip