- how to move files in a directory using scp ?
- how to move the entire directory ?
- Will the file and the directory permissions affect scp usage?
scp works similar to cp command, except you need to specify the source or destination remote machine.
So, doing scp -rp will take care of copying entire directory.
The only issue I have seen with file permissions is that sometimes scp -f does not work if the remote file has no write permission. In such cases I have to first delete the remote file and then copy over the new file.
1 Like