Saturday, January 30, 2016

Solved: Error “bash: scp: command not found” when using scp command

I am doing scp from my linux system to one of the newly installed Centos system. When I run the scp command and enter password, I get following errors:

ritesh@rorguide:~/projects$ scp -r rorguide root@
root@'s password:
bash: scp: command not found
lost connection

I found the solution on

which states scp command should be available on both server - both on the client and on the server.

I ran the command "yum -y install openssh-clients" on Centos. After successfully installing the scp I was able to scp files on remote system.

No comments:

Post a Comment