1、从远程Linux主机拷贝文件夹到本地的Linux主机上

    scp命令拷贝文件,拷贝远程Linux上的文件夹到本地,如下List-1.1所示:

    List-1.1

scp -r username@host:/opt/xx/xxx ./

2、本地Linux主机向远程Linux主机copy文件/文件夹

     List-2.1

scp -r localfile.txt username@host:/dir 
12-31 18:33