SSH Connection with Public key not working

SSH Connection with Public key not working

Hello,

I am using dbForge Studio 2022 for MySQL Enterprise Edition 9.1.21 and trying to connect to a MariaDB server on a remote Arch Linux server via SSH. On that server, SSH is configured to accept public key authentication. When using the standard Windows Terminal and ssh username@<ip-address> to that server, it works without any issue.
In dbForge Studio I have set up the following connection properties:


the private key file is what was generated with the ssh-keygen tool and as I mentioned, the normal ssh-connection in the terminal is working fine.
With dbForge, I keep getting this error message:


When switching from Public key authentication to password authentication, the SSH connection words well and I can access to the database.

What am I doing wrong?