将远程主机路径admin@192.168.1.174:/path1/path2代号为remotePath
// 从本机拷贝到远程主机上
scp file1 remotePath
scp -r folder1 同上
// 从远程主机拷贝到本地
scp remotePath/file3 ./path3/
scp -r remotePath 同上
将远程主机路径admin@192.168.1.174:/path1/path2代号为remotePath
// 从本机拷贝到远程主机上
scp file1 remotePath
scp -r folder1 同上
// 从远程主机拷贝到本地
scp remotePath/file3 ./path3/
scp -r remotePath 同上