1

I would like to copy files in an remote server from one directory (in the remote server) to another (also in the same remote server). I tried this:

scp -r [email protected]:/folder_a/*myfiles* ../folder_b

This did no give any error message, but it did not work. I also tried this:

scp -r [email protected]:/folder_a/*myfiles* [email protected]:/folder_b

which gave an error message:

Permission denied, please try again.

Permission denied, please try again.

Received disconnect from : 2: Too many authentication failures for myacc lost connection

How to copy files within a same server from one directory to another?

1 Answer 1

6

You should use ssh and do:

ssh [email protected] "cp /folder_a/*myfiles* /folder_b"
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .