'How to use rsync with /sbin/nologin shell?

Is there any any possibility to use rsync with /sbin/nologin shell? I need to send a file to a server using user with nologin shell (it should stay like that, i can't change shell). I'am using RedHat.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source