1753479 Members
4748 Online
108794 Solutions
New Discussion юеВ

scp -- plz help

 
SOLVED
Go to solution
Maaz
Valued Contributor

scp -- plz help

Dear All

i try to use scp but failed, me so dumb :(

ok, I have to copy(scP) a file from my system(os: rhl 9.0, ip: 10.0.0.1) to another system(os: rhl 9.0, ip: 10.0.0.10), what shoud I type ?, I mean what should I have to issue ?

Plz help me ... le me know the exact syntax.

PS: I have accounts on both systems.

Regards
Maaz
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: scp -- plz help

1) You are not dumb. You were smart enough to come here and ask a question.

2) syntax

scp sourcefile hostname:/target_Directory

example

scp -p /root/* secondsystem:/rootback

scp -p /root/* 10.0.0.10:/rootback

this will copy preserving permissions all files in the /root directory to a folder named /rootback on a second system.

You will/may be prompted for a password.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Maaz
Valued Contributor

Re: scp -- plz help

Many Thanks Dear SEP.
No doubt this is a Marvelous Forum.

Regards
Maaz
Maaz
Valued Contributor

Re: scp -- plz help

Dear SEP and All

i tried (and succeeded, thanks Forum :) )

# scp file 10.0.0.9:~/

but, then the destination(10.0.0.9) machine always asks/promts for password, ok.

Is is possible that the destination machine dont ask password every time I run scp. ? if then please kindly let me know the step-by-step procedure.

Thanks n Regards

Maaz
Steven E. Protter
Exalted Contributor

Re: scp -- plz help

attaching a document on how to set up password free scp/ssh/sftp connectivity.

X windows is not needed in this word format document. Its very important to pay attention to permissions instructions.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Maaz
Valued Contributor

Re: scp -- plz help

Again Thanks a Million SEP.
I'll check out the Document, and will implement it on. then I'll reply u back.

Thanks again.

Regards
Maaz
Maaz
Valued Contributor

Re: scp -- plz help

its working its Great.
Thanks SEP.

Maaz