【Linux技术】使用SSH进行文件传输

在linux下面使用scp命令进行文件传输。

1.从远程电脑下载文件到本地

scp username@serverIP:/path /path/local

2.向远程电脑上传文件

scp /path/local username@serverIP:/path

3.从远程电脑下载文件夹到本地

scp -r username@serverIP:/path/ /path/local/

4.向远程电脑上传文件夹

scp -r /path/local/ username@serverIP:/path/

猜你喜欢

转载自blog.csdn.net/twt520ly/article/details/80496586