Manfred Gnaedig
2002-May-04 11:57 UTC
Send Password with RSYNC_PASSWORD ore --password-file
Hallo, i am verry sorry about my bad engllish. But i trie my best... I trie to setup an Backupserver. If i use this rsync -varpog -e ssh /home/www/web6 217.172.xxx.xxx:/home/www/web6 the Server is asking me fore Password. If i use this rsync -varpog -e ssh --stats /home/www/web6 217.172.xxx.xxx:/home/www/web6 --password-file=host1.pwd the Server is asking me too fore Passwort. How i can bring the Passwort to the Server automaticly? What i have tu use? What can i do? Ore is it better to use RSYNC_PASSWORD ? But how can i use this? Thank you verry mutch fore everything. Best Wishes from D?sseldorf Your Manfred Gn?dig
The page at the following address gives some examples of this: http://www.ccp14.ac.uk/ccp14admin/rsync/index.html#client I think this is what you are after. Mainly using the (csh example) the following in the script file you are using: setenv RSYNC_PASSWORD plaintextpassword (better ways of doing this?) Lachlan.> > Hallo, > i am verry sorry about my bad engllish. > But i trie my best... > > I trie to setup an Backupserver. > If i use this > rsync -varpog -e ssh /home/www/web6 217.172.xxx.xxx:/home/www/web6 > the Server is asking me fore Password. > > If i use this > rsync -varpog -e ssh --stats /home/www/web6 > 217.172.xxx.xxx:/home/www/web6 --password-file=host1.pwd > the Server is asking me too fore Passwort. > > How i can bring the Passwort to the Server automaticly? > What i have tu use? > What can i do? > > Ore is it better to use RSYNC_PASSWORD ? > But how can i use this? > > Thank you verry mutch fore everything. > Best Wishes from D?sseldorf > Your > Manfred Gn?dig > > > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html >-- ----------------------- Lachlan M. D. Cranswick Collaborative Computational Project No 14 (CCP14) for Single Crystal and Powder Diffraction Birkbeck University of London and Daresbury Laboratory Postal Address: CCP14 - School of Crystallography, Birkbeck College, Malet Street, Bloomsbury, WC1E 7HX, London, UK Tel: (+44) 020 7631 6850 Fax: (+44) 020 7631 6803 E-mail: l.m.d.cranswick@dl.ac.uk Room: B091 WWW: http://www.ccp14.ac.uk/
Manfred Gnaedig
2002-May-04 12:36 UTC
Send Password with RSYNC_PASSWORD ore --password-file
Hallo, thank you verry mutch. > The page at the following address gives some examples> of this: > http://www.ccp14.ac.uk/ccp14admin/rsync/index.html#client > I think this is what you are after. > Mainly using the (csh example) the following in > the script file you are using: > setenv RSYNC_PASSWORD plaintextpassword > (better ways of doing this?)Now i was trie this: #!/bin/csh setenv RSYNC_PASSWORD mypasswort rsync -varpog -e ssh /home/www/web2 217.172.xxx.xxx:/home/www/web2 But the Server is askimg me again fore the Password. What can i do? Greatings Manfred Gn?dig
On Sat, 4 May 2002, Manfred Gnaedig wrote:> If i use this > rsync -varpog -e ssh --stats /home/www/web6 > 217.172.xxx.xxx:/home/www/web6 --password-file=host1.pwd > the Server is asking me too fore Passwort.Ssh is asking you for the password. However, the --password-file option (as well as the RSYNC_PASSWORD environment variable) only affects transfers to an rsync daemon, which you are not using (the rsync daemon syntax requires 2 colons after the hostname). So, you either need to switch over to using an rsync daemon (and leave the "-e ssh" option off), or you need to setup ssh so that it doesn't prompt you for a password (testing it w/o rsync first is easiest). One way to setup ssh is to enable an RSA authorized key on the server you're connecting to. Look for the discussion of the files identity, identity.pub, and authorized_keys. ..wayne..