命令格式:scp [参数] [原路径] [目标路径]
实例1:从远处复制文件到本地目录
scp root@192.168.120.204:/opt/soft/nginx-0.5.38.tar.gz /opt/soft/
实例2:从远处复制目录到本地
scp -r root@192.168.120.204:/opt/soft /opt/soft/
实例3:上传本地文件到远程机器指定目录
scp /opt/soft/nginx-0.5.38.tar.gz root@192.168.120.204:/opt/soft/scptest
实例4:上传本地目录到远程机器指定目录
scp -r /opt/soft root@192.168.120.204:/opt/soft/scptest