您的位置:首页 > 运维架构 > Linux

linux SCP 实现两台主机copy

2013-08-23 18:22 162 查看
(1) 接受端

Server端口

Ubuntu下 ssh : connect to host localhost port 22:Connection refused

Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused

造成这个错误的原因可能是ssh-server未安装或者未启动。ubuntu 11.10 默认安装openssh-client,但是木有安装server

运行 ps -e | grep ssh,查看是否有sshd进程

如果没有,说明server没启动,通过 /etc/init.d/ssh -start 启动server进程,如果提示ssh不存在 那么就是没安装server

通过 sudo apt-get install openssh-server命令安装即可

Client

(2)发送端

xiongmc@xiongmc-desktop:~$ scp '/home/xiongmc/下载/bcompare-3.3.8.16340_amd64.deb' herry@172.21.107.19:bcompare-3.3.8.16340_amd64.deb
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: