Home > System Tutorial > LINUX > body text

Detailed explanation of scp command installation in CentOS

WBOY
Release: 2023-12-30 23:49:25
forward
1492 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template