]# scp -r /root/iftop-0.17/ root@IP:/home/
-bash: scp: command not found
应该是最小化安装系统没有安装scp的原因
执行以下命令安装scp
yum install openssh-clients
再执行scp命令-提示
scp /root/iftop-0.17.tar.gz root@IP:/home/
The authenticity of host 'IP (IP)' can't be established.
RSA key fingerprint is xx:xx:x5:x8:xx:x1:x5:9x::x7:xx::xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'IP (RSA) to the list of known hosts.
root@IP's password:
bash: scp: command not found
lost connection
想到应该是scp到目标ip的系统也没有安装scp的原因吧?
在目标ip系统上也执行安装命令yum install openssh-clients
之后在执行scp命令--成功了 -如下所示;
# scp /root/iftop-0.17.tar.gz root@IP:/home/
The authenticity of host 'IP (IP)' can't be established.
RSA key fingerprint is x4:xxxxxx:a5:xxxxxx:e7:2xxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'IP' (RSA) to the list of known hosts.
root@IP's password:
iftop-0.17.tar.gz 100% 157KB 156.6KB/s 00:00