May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Centos Minimal

scp : samll tips ( error : bash: scp: command not found )

 

When I try to copy a file over scp command , I’ve faced the following error.


CentOS6-1# /usr/bin/scp aa.tgz hattori@192.168.0.100:
hattori@192.168.0.100’s password:
bash: scp: command not found
lost connection
#


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
openssh-clients-5.3p1-81.el6.x86_64


CentOS6-2#rpm -qa | grep openssh-clients
CentOS6-2#


To solve this , install openssh-clients on CentOS6-2 machine.
CentOS6-2 # yum install -y openssh-clients
 

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>