Allows the www-data user to successfully log in. This is changing the “login shell” which is a good keyword to search for to learn more.
johncs:
Add the backup server’s SSH key to
/home/www-data/.ssh/authorized_keys.Do you mean Public key here?
Yes. Private keys should (basically) never be copied/shared anywhere outside of their host machine.