How to Fix “-bash: scp: command not found”

Related Articles

Question :

I try to use SCP command on my CentOS 6.3 server, but the following error returned. According to wikipedia, SCP or Secure copy is a means of securely transferring computer files between a local host and a remote host or between two remote hosts and It’s based on the Secure Shell (SSH) protocol. The term SCP can refer to one of two related things, the SCP protocol or the SCP program.

[root@CentOS6.3 ~]# scp
-bash: scp: command not found

Answer :
To fix above error, you have to install openshh-clients in your CentOS 6.3 server as below :

[root@CentOS6.3 ~]# yum install openssh-clients -y

Just type scp command to get more options of the command :

[root@CentOS6.3 ~]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
[root@CentOS6.3 ~]#
As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..


Skytech is a part time blogger that has over 6 years experience in servicing, repairing and configuring computers and administering the server systems.

Related Articles

Powered by WordPress · Designed by Theme Junkie