Rsync problem

Rashkae ubuntu at tigershaunt.com
Tue Jul 7 13:04:12 UTC 2009


jiten jha wrote:
> Dear friends,
>                  I have a problem in Rsync utility . I done this
> 
> 1> open terminal login super user.
> 2> ssh-key -t rsa
> 3> /root/.ssh/id_rsa.pub

If that was really your input, then you would have generated two files,
id_rsa.pub and id_rsa.pub.pub.  That's no good.  make sure you only
specify /root/.ssh/id_rsa, that will automatically generate the pub file
as well (remember, certificates work in pairs, the private key and the
public key.)  Also note that that ssh will refuse to use the keys if
permissions on the files are wrong.

chmod 600 /root/.ssh/id_rsa
chmod 700 /root.ssh

> 4> scp -r root at 10.0.1.72:/root/.ssh/id_rsa.pub root at 10.0.1.91:/root/.ssh/

Not really sure why you are using a network address as your source here.
Presumably, what you want is

scp /root/.ssh/id_rsa.pub root at 10.0.1.91:/root/.ssh/

> 5> cat id_rsa.pub >> /root/.ssh/authorized_keys

The public certificate needs to be copied/appended to authorized keys on
the remote computer, not the computer you are connecting from. First
login as root on the remote:

ssh root at 0.0.1.91
cd /root/.ssh
cat id_rsa.pub >> /root/.ssh/authorized_keys

*Note* the >> means to append a key to an existing authorized_keys file.
 However, if you only one this one remote login to work then it might be
best to replace any authorized_keys file that is already there.

cp id_rsa.pub authorized_keys


> 6> vim /etc/ssh/sshd_config
> 7> PermiRootLogin = yes

Again, this step must be run on the remotes.  However, if you were able
to scp to root on 10.0.1.91, then it probably already is permitting root
login.

> 8> Run this command rsync -r -v -a -e ssh/home/souce computer/
> root at 10.0.1.91:/home/user name /Desktop
> 
> 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.
> 
> 






More information about the ubuntu-users mailing list