您的位置:首页 > 其它

scp远程复制文件和目录

2015-07-16 16:43 239 查看
注意scp只能在linux操作系统平台上,要想在linux与window平台上传文件或者目录,下载一个winscp软件或者下载一个sshsecure shell软件安装在window上即可,非常方便,直接拖拉就行。
1.上传本机文件到远程服务器
scp local_path/file_nameuser_name@remote_ip:remote_path/
2.上传本机目录到远程服务器
scp -r local_path/fold_name user_name@remote_ip:remote_path/
3.拷贝远程服务器文件到本机
scp user_name@remote_ip:remote_path/file_name local_path/
4.拷贝远程服务器目录到本机
scp -ruser_name@remote_ip:remote_path/folder_name local_path/

至于其他方式也有,具体没有列出来,但是我想掌握这几种,在远程拷贝上就应该够用了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: