Secure copy from the command line

For future reference, the proper format to the command is:

scp -rv source_dir/* username@domain.com:/full/path/to/target/directory

More on Wikipedia. I had it backwards originally and copied a lot of files to the wrong place.

1 Response to “Secure copy from the command line”


  1. 1 Andrew

    So after trying this today for WebFaction accounts it should be username@domain.com:full/path/to/target/directory (i.e. no leading slash to the directory). Just an FYI for future reference.

Leave a Reply

You must login to post a comment.