Hi people, I need to migrate stuff from an Aix server to a SuSE Linux server and I will do this by copying the files using SCP. It works very well, as long as I am there to type the password! I would like to put many scp commands (one for each filesystem i need to copy) in a script but actually it won't work because I have to type the password for every scp command. Is there any way I can avoid the password prompt or maybe include it in the script? Or is there any better way to copy stuff like that? Thanks a lot for your answers, Best regards, Steve Hemond Programmeur / Programmer Smurfit-Stone, Ressources Forestières La Tuque, P.Q. Phone : (819) 676-8100 X2833 Mail : shemond@smurfit.com
----- Original Message -----
From: "Hemond, Steve"
On Fri, May 28, 2004 at 07:27:02AM -0500, Hemond, Steve wrote:
Hi people,
I need to migrate stuff from an Aix server to a SuSE Linux server and I will do this by copying the files using SCP. It works very well, as long as I am there to type the password!
I would like to put many scp commands (one for each filesystem i need to copy) in a script but actually it won't work because I have to type the password for every scp command.
Is there any way I can avoid the password prompt or maybe include it in the script? Or is there any better way to copy stuff like that?
ssh-keygen -- (o< |) //\ ..may the beacon /\obt. V_/_ pass you by.. /\/\iller 8:34am up 2 days, 2:03, 17 users, load average: 0.00, 0.01, 0.00 processes 66642
On Fri, May 28, 2004 at 07:27:02AM -0500, Hemond, Steve wrote:
Hi people,
I need to migrate stuff from an Aix server to a SuSE Linux server and I will do this by copying the files using SCP. It works very well, as long as I am there to type the password!
I would like to put many scp commands (one for each filesystem i need to copy) in a script but actually it won't work because I have to type the password for every scp command.
Is there any way I can avoid the password prompt or maybe include it in the script?
You need to generate an SSH key on the machine which is initiating the scp command, and place it in your ~/.ssh area on the target machine. 'man ssh' for more details
Or is there any better way to copy stuff like that?
This is a perfectly valid way of doing it, but you might like to look at 'rsync'. HTH... -- David Smith Work Email: Dave.Smith@st.com STMicroelectronics Home Email: David.Smith@ds-electronics.co.uk Bristol, England GPG Key: 0xF13192F2
On 28.05.04,07:27, Hemond, Steve wrote:
Hi people,
I need to migrate stuff from an Aix server to a SuSE Linux server and I will do this by copying the files using SCP. It works very well, as long as I am there to type the password!
I would like to put many scp commands (one for each filesystem i need to copy) in a script but actually it won't work because I have to type the password for every scp command.
Is there any way I can avoid the password prompt or maybe include it in the script? Or is there any better way to copy stuff like that?
Thanks a lot for your answers,
This fine book describes how to do this using rsync and ssh. Example
here:
http://hacks.oreilly.com/pub/h/38
- Jostein
--
Jostein Berntsen
participants (5)
-
Dave Smith
-
Hemond, Steve
-
Jostein Berntsen
-
Rob Freeman
-
Robt. Miller