$ echo "password" | ssh sudo -S -v
$ sudo rsync -a -e ssh --rsync-path="sudo rsync"
The first line will touch the timestamp for sudo, the second line will really sync. Keep in mind that this doesn't take care of credentials for ssh, so you will need to take care of this using keys, agents or some external authentication mechanism like Kerberos.
1 comment:
Starting from Ubuntu 10.04, the first line should be an ssh as root, so put sudo in front of it.
Post a Comment