[CentOS] file manager over ssh

John R Pierce
Sun, 17 Aug 2008 09:49:29 -0000

Rudi Ahlers wrote:
> scp is the easiest in this regard. It runs over SSH, so your data is
> secure - especially if it's over the open internet.
>
> The commands are as follows: scp user1 at otherhost:/home/user1/myfile .
...

and in fact, if /home/user1 is user1 at otherhost's home directory, that
can be shortened to...

    $ scp user1 at otherhost:myfile .

you can also copy the other way...

    $ scp myfile user1 at otherhost:.

which would put it in user1 at otherhost's home directory...  or...

    $ scp -R .  user1 at otherhost:/remote/path

would copy ALL files and subdirectories from the current directory to
/remote/path on otherhost...

`man scp` for lots more options...