Home >System Tutorial >LINUX >Detailed explanation of scp command installation in CentOS

Detailed explanation of scp command installation in CentOS

WBOY
WBOYforward
2023-12-30 23:49:251503browse

During the test, files need to be transferred between two virtual machines. The first thing that comes to mind is the scp command. The result prompts:

-bash: scp: command not found

Take it for granted and use the yum install scp command to install it. The result prompts:

No package scp available.

Later I found that scp should belong to the openssh-clients package, run:

yum install openssh-clients

Just run scp again, run again:

scp 1.so root@192.168.0.182:/root/

After entering the password, it prompts again:

bash: scp: command not found

Also install openssh-clients on the target host and try again, the problem is solved.

The above is the detailed content of Detailed explanation of scp command installation in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete