On the road to scripted backups - create an SSH user

I might be wrong headed about this but I need to start somewhere.

My hope is to take periodic backups of important shares to an external drive plugged into the NAS via USB. Through my research here and on github I gather there’s no way to do this through the web interface.

So next option is via SSH. I can SSH in as root but this smells all manner of wrong.
So far my attempts at creating a backupmanager account that can login via SSH have failed.

Started with (from the root account):

useradd backupmanager
passwd backupmanager

Then

nano /etc/ssh/sshd_config

to uncomment

PasswordAuthentication yes

even did this for good measure

usermod -d /home/backupmanager -m backupmanager

ssh login always:

Permission denied, please try again.

What might I be missing?

][.

Actually, I would recommend instead of editing the base file dropping an additional file into the

/etc/ssh/sshd_config.d

directory, e.g. 10-additional-users.conf.

Since password access is already allowed, the only entry you likely have to put into that file is:

allowusers backupmanager

Save and restart the ssh server with `systemctl restart sshd’

BTW, you can create/could have created the backupmanager: combo you wanted to use through the WebUI and then added it to the file described above.

As you probably already know, you can also test then what setting ssh has loaded by running

ssh -T
4 Likes