We use cookies and web tracking technologies on this site for various purposes, including to enhance site performance, personalize your experience, and deliver interest-based ads. By continuing to use this site, you agree to our use of cookies and web tracking technologies as described in our Privacy Statement and Cookie Statement.
I am contacting you because I have an issue while setting a ssh connection between my Ubuntu desktop and my NAS (MyCloudEX2ultra model). My plan is to actually define a ssh connection in order to create an automated incremental backup of my home directory using rsync.
Of course, I am not a Linux power user but I found some guidelines to follow and I created my ssh key. The issue occurs when I want to copy this file on one profile. The access to that profile is set by a password that I write properly but the access is denied.
I am wondering about a potential setting issue but here is a screenshot of the network settings :
First of all check that the user is enabled in /etc/ssh/sshd_config. OS5 default is to only allow sshd user. I think OS3 uses root.
If you are trying to save a public key in an authorized_keys file to facilitate password-less ssh logins be aware that the file can not be in any directory in /shares or /mnt. Sshd will recognize that these directories are writable by anyone and will refuse to use the authorized_keys file for logins.
A solution I have used is to create a secure directory in / to contain the keys and then add an AuthorizedKeysFile line to sshd_config to tell sshd where to look for the keys.
There is a serious caution: Any error in the sshd_config file will prevent sshd from running and you will not beable to log in using ssh at all. So if you go that route test what you are doing very carefully.
Thanks for your reply. In the meantime, I switched to another distro and will give another try but I will take your comment into consideration when trying to link both. Thanks a lot!