scp : samll tips ( error : bash: scp: command not found )
When I try to copy a file over scp command , I’ve faced the following error.
CentOS6-1# /usr/bin/scp aa.tgz hattori@192.168.0.100: hattori@192.168.0.100’s password: bash: scp: command not found lost connection # |
The reason is openssh-clients have not been installed on the remote machine.
To copy files over scp , openssh-clients needs to be installed on both machines.
I didn’t know that…
CentOS6-2 machine has not had openssh-clients for sure.
CentOS6-1# rpm -qa | grep openssh-client
openssh-clients-5.3p1-81.el6.x86_64
|
CentOS6-2#rpm -qa | grep openssh-clients
CentOS6-2#
|
To solve this , install openssh-clients on CentOS6-2 machine.
CentOS6-2 # yum install -y openssh-clients
|
Recent Comments