I want to run rync to a remote server which has an uncleaned shell. If someone tries to connect it via ssh shell, it'll show some warnings. Due to this issue I couldn't able to copy files.
protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility (code 2) at compat.c(178) [sender=3.1.2]
Is there any way to run the rsync on an uncleaned shell?
Then I tried with a cleaned shell. I have removed all the warning messages and then verified with rsh command.
rsh -i key -p 2022 remotehost@user > output
There is no data and its size was 0.
Then I tried to do the sync, now im getting the below error.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.2]
After cleanup, still getting error, what can be the reason?
rsync -avz --progress -e "ssh -p 2022 -i mykey.pem" /tmp/test/ firstname.lastname@example.org:/tmp/
Can anyone help me on this?
I forgot to mention this earlier. I have enabled SSH session recording.