I'm trying to set rsync
to use rsh
as transport .
I have edited the file /etc/pamd./login
:
#To not show the message of the day, we commented on it.
#session optional pam_motd.so motd = / run / motd.dynamic
I created my file $HOME/.rhosts
:
cat .rhosts
+ trauma
ls -l .rhosts
-rw ------- 1 trauma trauma 9 Dec 5 22:38 .rhosts
And, to avoid showing the message lastlogin
, I created the file .hushlogin
:
ls -l .hushlogin
-rw ------- 1 trauma trauma 0 Dec 5 22:27 .hushlogin
If I try to access, it works apparently well, without messages introducing noise :
rsh 192.168.1.2
trauma @ mynas: ~ $ _
Show me the expected, my prompt waiting for orders.
However, if I try
rsync -e rsh Trabajos [email protected]:Backups
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]
Doing tests, I see that if I try to use rsh
to execute an order :
rsh 192.168.1.2 ls
I get a nice error message:
Authentication failure
I ask:
1. Why do I get the message Authentication failure
?
2. What do I need to be able to use rsync
over rsh
?
Note: No is no error; I want to use rsh
, no ssh