文件互传

除了用filezilla这样的软件实现本地与服务器文件互传,也可用命令,window下常用xshell这样的命令编辑器

有时filezilla传文件会出现些问题,这时候常用scp命令

linux与linux互传:

本地到远程主机:scp local_file remote_username@remote_ip:remote_file
                      scp -r local_folder remote_username@remote_ip:remote_folder

远程主机到本地scp root@www.cumt.edu.cn:/home/root/others/music /home/space/music/1.mp3 
                       scp -r www.cumt.edu.cn:/home/root/others/ /home/space/music/

window与linux互传:

         使用xshell登录到远程服务器后查看是否安装了sz rz命令,输入rpm -qa|grep  sz和 rpm -qa|grep  rz出现版本号即已安装,否则用yum install sz和yum install rz安装。

        win->linux:输入rz即弹出文件选择框

        linux->win:输入sz filename即弹出存放路径选择框

posted @ 2016-10-19 10:06  冰柠檬草  阅读(218)  评论(0编辑  收藏  举报