lost and found ( for me ? )

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@
hattori@'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

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

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

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.