linux之间文件传输问题

如果linux服务器使用了秘钥登陆,可以先关闭秘钥登陆

http://blog.chinaunix.net/uid-23634108-id-2393471.html

1.PermitRootLogin yes 前面#去掉

2.PubkeyAuthentication yes  的yes改为no

3.文章中的第三点本来就有#号,不用处理,别被糊弄了

4.PasswordAuthentication no 的no修改为yes

 

 

 

 

然后:scp -P 端口号  note.txt  root@ip地址:/home/mytest

如果是通过一台有外网的ip机连接到一台只有内网ip的服务器A,想要从A上网其他机器上放文件需要使用内网ip:
scp -P 1322  t_brand.frm  root@192.168.0.4:/home/mytest

 

如果要同步传输,相同的跳过

rsync  -avzuP '-e ssh -p 1322'  --progress  root@14.17.66.66:/home/local/webapps/qctsw/temp/* ./tmp

posted @ 2016-08-05 12:02  NewObject_1  阅读(339)  评论(0编辑  收藏  举报