SSH Key error connect to qnap

I am trying to connect with a ssh-key, it works with bitwise but i can’t get duplicati to connect.

It gives this error

Failed to connect: error-id:SSHFailedToParseKeyFile, user-information:Failed to parse the keyfile, check the key format and passphrase. Error message was Invalid private key file.

By username i fill in the username from QNAP and password created by the ssh-hey

By advanced options i selected ssh-key and added sshkey:// before the key

sshkey://-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCdLjkIUX
VJ+U8wA=
-----END OPENSSH PRIVATE KEY-----

Anyone know what i am doing wrong?

Found some solutions creating different certificates but none of them worked.

Created certs this way

ssh-keygen -m pem -f duplicati -t rsa -b 4096

Is there anyone who got this working with QNAP ?

Hi @Sluxi, welcome to the forum :waving_hand:

Are you using the 2.2 stable release?
It has simplified the way you supply the public key, and you can now just paste in the public key in the advanced options on the SSH page.

You should not enter a prefix, just paste in the public key contents.

If you are using an older version of Duplicati, you need to also url-encode the key, which is a bit of a hassle.