When I try to copy a file over scp command , I’ve faced the following error.
|CentOS6-1# /usr/bin/scp aa.tgz email@example.com:|
bash: scp: command not found
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
CentOS6-2#rpm -qa | grep openssh-clients
To solve this , install openssh-clients on CentOS6-2 machine.
CentOS6-2 # yum install -y openssh-clients