SCP command

Joined
May 2, 2008
Messages
2
Reaction score
0
Points
1
Hi

I'm trying to send files from my desktop, to a remote server, but I dont know how to write the SCP command.

My mac name is:
test-mac-imac-g5

and the servername is:
servername.co.uk

But I'm not sure how to do the command.

Do I need the IP address of my local machine?

I used this:

scp test.txt [email protected]: /var/www/test/version1

But I'm not sure If I need to have the path to the directory/file I'm uploading, or my IP address etc to send the files

Thanks
 
T

tux08902

Guest
Code:
scp test.txt [email protected]:/var/www/test/version1

OR

Code:
scp test.txt [email protected]:/var/www/test/version1

I used the second one yesterday to recursively copy a lot of my data from my desktop to my MacBook Pro. That one definitely works.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top