rsync task over ssh: privat-key must be named id_rsa| how to use other named?

Zaret

Cadet
Joined
Mar 2, 2019
Messages
3
Hey together,

could it be that the private key for an rsync over ssh must be named id_rsa?
Or how i can use keys with other names?

The Story:
today i wanted to setup an rsync task over ssh.
I created a private and public rsa key with a custom name, transfered the public key to the other server and enter it into the authorizes_keys file.
I used an config file for the mapping between IdentityFile and host and it worked like a charm.
While during the creation of the task i get the error :
Code:
In order to use rsync over SSH you need a user with a private key (DSA/ECDSA/RSA) set up in home dir.

Even if i add the keys in "SSH Connections" it doesn't work.
With despair i renamed the key to id_rsa and suddenly it worked there to.
There is nothing in the Truenas docs about it.

Is this an unnamed rule or how i'm able to use different named keys?

Thanks
 

Schwarzie

Cadet
Joined
Jul 30, 2022
Messages
2
Thank you!

After wasting 3 hours to find out why the rsync service doesnt work with my ssh keys (which worked fine when used in the console) simpoly renaming them to id_rsa fixed my issue.

This solution is truly stupid and i would like to see this naming convention included into the error message in the rsync setup dialog.
 
Top