ich moechte mit rsync ueber ssh einen Linux-PC auf einen anderen sichern.
Problem: root darf sich nicht ueber ssh einloggen und der
Hat jemand eine Idee, wie ich das hinkriege, das nach dem Login als Benutzer zu root gewechselt wird? Ich verwende Passwörter ohne Schlüssel.
Habs bereits so probiert:
Code: Select all
debian:/home/debian# rsync -e ssh -av --rsync-path=/bin/su user@xxx.xxx.xxx.xx:/home
Password:
su: must be run from a terminal
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(420)