SCP copying one or more files

Published by

Posted on February 21, 2013

One file from a remote host

scp user@host:/pathtofile/  /localpath/

 

One file to remote host

scp /localpathtofile/ user@host:/pathtosave

multiple to remote host

 

scp file1 , file2  user@host:/pathtosave

 

Multiple from remote host

scp user@host:/path/dir/\{file1,file2\} /localpath/