After doing minimal installation of CentOS 6.3 server ,we were not able to do scp from my client machine to CentOS server.It was simply showing the error – “scp command not found”. This thing has happened earlier when we have used the CentOS 6.
When it was occur last time with us in CentOS 6.0 it was due to Env set in /etc/profile.
Now today we got the error because of some other Reason.
To solve the problem. Install the openssh-clients packages in CentOS server.
You may be wondering how we get the conclusion to install only openssh-clients package in the system.
Here we will search for the package which provides the command ‘scp’.
In below output, we can find that /usr/bin/scp is associated with package called ‘openssh-clients’ and hence we only install this package.
[root@centos-linuxworld ~]# yum whatprovides "*/scp"