Rsync problem

Siggy Brentrup winnegan.ubuntu at ewetel.net
Tue Jul 7 11:08:34 UTC 2009


On Tue, Jul 07, 2009 at 02:03:23PM +0530, jiten jha wrote:
> Dear friends,
>                  I have a problem in Rsync utility . I done this

To me it looks like you have a more general problem
 
> 1> open terminal login super user.
> 2> ssh-key -t rsa
> 3> /root/.ssh/id_rsa.pub
> 4> scp -r root at 10.0.1.72:/root/.ssh/id_rsa.pub root at 10.0.1.91:/root/.ssh/
> 5> cat id_rsa.pub >> /root/.ssh/authorized_keys
> 6> vim /etc/ssh/sshd_config
> 7> PermiRootLogin = yes
> 8> Run this command rsync -r -v -a -e ssh /home/souce computer/
> root at 10.0.1.91:/home/user name /Desktop

What are you trying to achieve? My first guess is recursively
copy a user's home directory to a target machine.

> when i follow that setps then it is asking root password .
> Plz help me to solve that problem. I searched on google but not getting
> solution.

Put a thick fat *D*O*N*T* on setting PermitRootLogin=yes in sshd_config,
that opens pandora's box.

Assuming my above guess is correct, try this:

# tar czf - -C ~LOCAL_USER . | ssh REMOTE_USER at TARGET tar xzf - -C TARGET_DIR

it'll ask you for REMOTE_USER's password.

HTH
 Siggy
-- 
Please don't cc: me when replying on the list.
    bsb-at-psycho-dot-informationsanarchistik-dot-de
or:                    bsb-at-psycho-dot-i21k-dot-de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090707/49f531bd/attachment.sig>


More information about the ubuntu-users mailing list