两台Linux之间传文件

安装sudo apt-get install openssh-client openssh-server

使用scp命令: 
scp john@~/hallo.h /usr/include 
将左边移动到右边,如果是文件夹加个-r递归,其他参数看手册.

注意: 
确定服务有开启: ps -aux | grep sshd 
如果还有问题可能是防火墙规则. 
防火墙问题参考:http://bbs.csdn.net/topics/340225063/ 
或暂时关闭防火墙: 
/etc/init.d/iptables status 
/etc/init.d/iptables stop

posted on 2017-12-11 11:47  willaty  阅读(773)  评论(0编辑  收藏  举报

导航