linux下上传和下载文件到远程服务器

发现linux下的ssh命令不能像windows下的ssh client那样可以用拖放的方式,上传本地文件到服务器和从服务器下载文件到本地。

在网上找到这个命令不错:

scp -rp /path/filename username@remoteIP:/path #将本地文件拷贝到服务器上
scp -rp username@remoteIP:/path/filename /path #将远程文件从服务器下载到本地

猜你喜欢

转载自blog.csdn.net/tdphhh/article/details/80391125