my_webapp allow to easily host a static website (I love it)
it support sftp only to upload files
I would like to use the well known rsync command which is efficient (I have several GB to upload and thousands of files)
I get this with current rsync output (while both machines are using different rsync versions but the same protocol version=32):
protocol version mismatch -- is your shell clean?
(see the rsync manpage for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(624) [sender=3.4.1]
Why does it fails? rsync requires to be able to open a shell
A workaround were shared on on Yunohost support channel
gpasswd -d my_webapp sftp.app
usermod -a -G ssh.app my_webapp
If my understanding is correct, this allow the my_webapp user to use any shell command
we might wish to limit this user to only be able to use rsync: https://www.man7.org/linux/man-pages/man1/rrsync.1.html#DESCRIPTION
my_webapp allow to easily host a static website (I love it)
it support sftp only to upload files
I would like to use the well known rsync command which is efficient (I have several GB to upload and thousands of files)
I get this with current rsync output (while both machines are using different rsync versions but the same protocol version=32):
protocol version mismatch -- is your shell clean?
(see the rsync manpage for an explanation)
rsync error: protocol incompatibility (code 2) at compat.c(624) [sender=3.4.1]
Why does it fails? rsync requires to be able to open a shell
A workaround were shared on on Yunohost support channel
gpasswd -d my_webapp sftp.app
usermod -a -G ssh.app my_webapp
If my understanding is correct, this allow the my_webapp user to use any shell command
we might wish to limit this user to only be able to use rsync: https://www.man7.org/linux/man-pages/man1/rrsync.1.html#DESCRIPTION