PDA

View Full Version : Using scp in Unix




smurray444
Mar 3, 2009, 05:39 AM
Dear all,

I'm trying to copy (using scp, Unix) a file from a remote host to my local computer. The command that I've been trying is:

scp lpj_land_mask.nc glsjm@[ip address]:/Users/Steve/Desktop/

This however only seems to move the file from its original place on the remote host to another folder on the remote host.

How do I get it to actually appear on my own local computer?

Many thanks for any help,

Steve



reh
Mar 3, 2009, 06:12 AM
The syntax for scp is scp source destination. So in your case you'd have something like this:
scp glsjm@[ip address]:lpj_land_mask.nc /Users/Steve/Desktop/

LtRammstein
Mar 3, 2009, 09:13 PM
Here are a list of examples you can do:

http://www.hypexr.org/linux_scp_help.php