Hi, I'm trying to learn rsync and to aid this I'm trying some 'simple' syncronising over the net using SSH. What I can't find clearly explained in the docs is where to put the remote user password in the command line argument. For example I want to sync the two 'documents' directories - one on my local Linux box and another on a server in my office. The command I'm planning to use is: rsync -avz -e ssh /home/huw/documents huw@mydomain.co.uk:/home/huw/documents/ What I can't find is where to put the password for the remote user ? TIA Huw
What you need to do it setup a key on the remote machine, a tutorial to do this can be found at http://linuxproblem.org/art_9.html , hope this helps. Steve Sills Platnum Computers, President http://www.platnum.com steve@platnum.com ----- Original Message ----- From: "Huw Wyn Jones" <huw@pioden.net> To: <rsync@lists.samba.org> Sent: Wednesday, February 18, 2004 3:04 PM Subject: ssh - how to send password ?> Hi, > > I'm trying to learn rsync and to aid this I'm trying some 'simple' > syncronising over the net using SSH. What I can't find clearly explained > in the docs is where to put the remote user password in the command line > argument. > > For example I want to sync the two 'documents' directories - one on my > local Linux box and another on a server in my office. The command I'm > planning to use is: > > rsync -avz -e ssh /home/huw/documents > huw@mydomain.co.uk:/home/huw/documents/ > > What I can't find is where to put the password for the remote user ? > > TIA > > Huw > > -- > To unsubscribe or change options:http://lists.samba.org/mailman/listinfo/rsync> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > >
Sorry to 'bump' this one back to the list but I'm not clear - is there a way of appending a password to an Rsync command argument or is this just not possible/practical ? Thanks to all who replied with the SSH keys solution - I'll investigate this over the weekend - but I'd like to see what can be done with Rsync on it's own before adding ssh trickery into the mix !!! Hope you understand :-) Original Message:> Hi, > > I'm trying to learn rsync and to aid this I'm trying some 'simple' > syncronising over the net using SSH. What I can't find clearly explained > in the docs is where to put the remote user password in the command line > argument. > > For example I want to sync the two 'documents' directories - one on my > local Linux box and another on a server in my office. The command I'm > planning to use is: > > rsync -avz -e ssh /home/huw/documents > huw@mydomain.co.uk:/home/huw/documents/ > > What I can't find is where to put the password for the remote user ? > > TIA > > Huw