Page 1 of 1

Unable to SSH Access with key exchange

PostPosted: Fri Dec 26, 2025 6:19 pm
by sormariano
Hello
I am able to access with root username and password in my Lacie Netwprk Space 2 with last firmware 18.3.
I want to use is as a backup NAS through a shell script using rsync (another problem for a my future post)-
But I'm not able to enable the SSH Access through keys:
I always have
Code: Select all
root@lacie-nas.station: Permission denied (publickey).

How can I solve this ? I used a lot of kind of generated keys but with no success.
If you need some trace or log, please ask I'll post them.
I'm trying the ssh connection both from a Linux PC and an Asustor NAS.
Thanks

Re: Unable to SSH Access with key exchange

PostPosted: Sat Dec 27, 2025 4:53 pm
by sormariano
I will try to be more detailed.

I would like to use this command to do a backup managed by cron fro my Asustor
Code: Select all
rsync -aAXvz --delete --numeric-ids /volume1/home root@lacie-nas:/share/1000/backup_asustor

In this way I can keep the user and groups ids. If I'd use rsyncd user, all the files on the Lacie will have as owner and group rsyncd:rsyncd
I am in my home network ancd I could also use a file containing the rsyncd password, if I'm not wrong, but I prefer to use keys.
But I don't understand where is my error

Re: Unable to SSH Access with key exchange

PostPosted: Mon Dec 29, 2025 9:40 am
by Jocko
sormariano wrote:Hello
I am able to access with root username and password in my Lacie Netwprk Space 2 with last firmware 18.3.
I want to use is as a backup NAS through a shell script using rsync (another problem for a my future post)-
But I'm not able to enable the SSH Access through keys:
I always have
Code: Select all
root@lacie-nas.station: Permission denied (publickey).

How can I solve this ? I used a lot of kind of generated keys but with no success.
If you need some trace or log, please ask I'll post them.
I'm trying the ssh connection both from a Linux PC and an Asustor NAS.
Thanks

Hi

You have to enable the option "SSH Access with key exchange" from SSH server

Please to notice with this mode, you can no longer use root credentials to login as by using key exchange we assume you want to open the ssh port and it is not safe to have an access from WAN with password