# scp
-bash: scp: command not found
# which scp
/usr/bin/scp
# rpm -qf /usr/bin/scp
openssh-clients-4.3p2-72.el5
# yum install openssh-clients
或者从光盘上安装
# rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64
# rpm -ivh openssh-clients-5.3p1-20.el6.x86_64
如果还报错,bash: scp: command not found
lost connection
本地是有scp命令的,密码输入也是正确的
加-v参数查看详细过程,认证已经通过,判断应该是远端服务器的scp命令没有安装.