Linux命令-CentOS7安裝scp命令,進行mac與Linux之間的文件上傳下載

一、使用yum安裝scp架構

執行:yum install scpssh

已加載插件:fastestmirroride

Loading mirror speeds from cached hostfile插件

 * base: mirrors.zju.edu.cn事務

 * extras: mirrors.cn99.comip

 * updates: mirror.lzu.edu.cnci

沒有可用軟件包 scp。it

錯誤:無須任何處理io

 

二、提示沒有scp安裝包。咱們再使用yum search scp來搜索下scp的相關ast

執行:yum search scp

已加載插件:fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.bit.edu.cn

 * extras: mirror.bit.edu.cn

 * updates: mirrors.tuna.tsinghua.edu.cn

=============================== N/S matched: scp ===============================

scpio.x86_64 : Copy file archives in and out (LEGACY)

  名稱和簡介匹配 only,使用「search all」試試。

 

三、查看scp匹配的是scpio.x86_64包,安裝scpio.x86_64包

執行:yum install scpio.x86_64 -y

已加載插件:fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirrors.tuna.tsinghua.edu.cn

 * extras: mirrors.cn99.com

 * updates: mirror.lzu.edu.cn

正在解決依賴關係

--> 正在檢查事務

---> 軟件包 scpio.x86_64.0.1.5.2-13.el7 將被 安裝

--> 解決依賴關係完成 

依賴關係解決

================================================================================

 Package         架構             版本                     源              大小

================================================================================

正在安裝:

 scpio           x86_64           1.5.2-13.el7             base           229 k

事務概要

================================================================================

安裝  1 軟件包 

總下載量:229 k

安裝大小:561 k

Downloading packages:

scpio-1.5.2-13.el7.x86_64.rpm                              | 229 kB   00:04     

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  正在安裝    : scpio-1.5.2-13.el7.x86_64                                   1/1 

  驗證中      : scpio-1.5.2-13.el7.x86_64                                   1/1 

已安裝:

  scpio.x86_64 0:1.5.2-13.el7                                                   

完畢!

 

四、驗證scp安裝成功,輸入scp可用查看其使用方法

執行:scp

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]

           [-l limit] [-o ssh_option] [-P port] [-S program]

           [[user@]host1:]file1 ... [[user@]host2:]file2 

相關文章
相關標籤/搜索