0. generate keys on client

ssh-keygen -t rsa -C "backup user on client that wants to rsync to qnap far away";

when asked for passphrase, do not enter anything…

1. one needs to upload one’s public key (id_rsa.pub)

2. one need to attach your public key to this file:

cd .ssh;

mv id_rsa.pub id_rsa_to_upload_to_qnap.pub;

scp -P12345 id_rsa_to_upload_to_qnap.pub admin@XXX.XXX.XXX.XXX:/mnt/HDA_ROOT/.config/ssh/; # use port 12345 and user admin to upload public key to qnap2

ssh -p12345 admin@XXX.XXX.XXX.XXX; # now login to your qnap

cd /mnt/HDA_ROOT/.config/ssh/;

cat id_rsa_to_upload_to_qnap.pub >> /mnt/HDA_ROOT/.config/ssh/authorized_keys;

rm -rf id_rsa_to_upload_to_qnap.pub;


if you logout and re-dial-in with ssh, you should get granted immediate access, without beeing asked for a password:

ssh -p12345 admin@XXX.XXX.XXX.XXX; # now login to your qnap


Related Links: