Advertisement

04.22.2004 at 11:04AM PDT, ID: 20963956
[x]
Attachment Details

HowTo: use scp in batch mode

Asked by stefri in Linux Administration

Tags: scp, batch, mode



I am currently using scp manually to update different files from one host to 3 other hosts : at connection my password is requested and I enter it

I want to setup crontab to do so.

How can I configure scp to avoid password propmpting. I understand I have to use

scp -B -i identity_file cpThisFile root@10.0.0.1/targetFile

How do I generate identity_file for the 3 different targets and where should it be created

The purpose is to propagate IMSS rules, copy /etc/hosts, /etc/postfix/transportList etc from one master to slaves,

If full instruction and readymade scripts, same amount of points will be available


Stefri
Start Free Trial
 
Loading Advertisement...
 
[+][-]04.22.2004 at 01:52PM PDT, ID: 10893553

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Administration
Tags: scp, batch, mode
Sign Up Now!
Solution Provided By: astrand
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.22.2004 at 01:53PM PDT, ID: 10893566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2004 at 02:32AM PDT, ID: 10897623

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32