Using scp in Unix

Discussion in 'Mac Programming' started by smurray444, Mar 3, 2009.

  1. macrumors newbie

    Joined:
    Jan 19, 2009
    #1
    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
     
  2. reh
    macrumors 6502a

    Joined:
    Oct 24, 2003
    Location:
    Arkansas
    #2
    The syntax for scp is scp source destination. So in your case you'd have something like this:
    Code:
    scp glsjm@[ip address]:lpj_land_mask.nc /Users/Steve/Desktop/
     
  3. macrumors 6502a

    LtRammstein

    Joined:
    Jun 20, 2006
    Location:
    Denver, CO

Share This Page