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