i have two machines
- local machine
- remote machine
i want to backup my files and folders automatically to the remote machine and doing that by Rsync command for transfer files and folder using ssh-keygen for automatically login to the remote machine
i can do it as ssh root but that will be a bit of security risk if someone can login directly to the remote machine as root if the local files has been compromised
i tried rssh but i couldn't try to login automatically using ssh-keygen
what iam looking for is how to create a ssh user with limited shell commands and specific directory safe for automatically login with no harm to the remote machine