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


1、使用yum安裝scp

執行:yum install scp

已加載插件:fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirrors.zju.edu.cn

 * extras: mirrors.cn99.com

 * updates: mirror.lzu.edu.cn

沒有可用軟件包 scp。

錯誤:無須任何處理

 

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

執行: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”試試。

 

3、查看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                                                   

完畢!

 

4、驗證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 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM