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



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.

[[email protected] ~]# 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 :

[[email protected] ~]# yum install openssh-clients -y

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

[[email protected] ~]# 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
[[email protected] ~]#

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..

Get A Free Domain + Hosting Discount – just $3.95/month with Bluehost Hosting.

Follow Us

Bloggers.com