Hi, I want to use rsync from a script. Before that I am trying it from command line. I use it as, $ rsync --password-file=pass -e ssh -av legal.txt accounts@127.0.0.1:/home/accounts accounts@127.0.0.1's password: I don't want to be prompted for password. $ ls -l pass -rwx------ 1 payal payal 9 Sep 30 19:11 pass* $ cat pass accpass123 [Don't worry it is not on real IP]. What is wrong? With warm regards, -Payal -- "Visit GNU/Linux Success Stories" http://payal.staticky.com Guest-Book Section Updated.
First; The file should not need nor be set execuatable. It's a test file as far as rsync should be concerned. Now as to why it fails, that is another issue and others that know the code will have to answer that. Thanks, Ron DuFresne Payal Rathod wrote:>Hi, >I want to use rsync from a script. Before that I am trying it from >command line. I use it as, >$ rsync --password-file=pass -e ssh -av legal.txt accounts@127.0.0.1:/home/accounts >accounts@127.0.0.1's password: > >I don't want to be prompted for password. > >$ ls -l pass >-rwx------ 1 payal payal 9 Sep 30 19:11 pass* > >$ cat pass >accpass123 > >[Don't worry it is not on real IP]. > >What is wrong? >With warm regards, >-Payal > > > > > > >
On Tue, Sep 30, 2003 at 07:20:42PM +0530, Payal Rathod wrote:> $ rsync --password-file=pass -e ssh -av legal.txt accounts@127.0.0.1:/home/accounts > accounts@127.0.0.1's password:Please refer to the ssh documention for how to setup ssh connections without being prompted (rsync does not do this for you). Hint: look at ssh-agent for one solution. Note also that the --password-file option refers to connecting to a remote rsync daemon, which is not what you're doing. ..wayne..