zoukankan      html  css  js  c++  java
  • scp传输提示bash: scp: command not found

    其中一端缺少scp相关的包

    [oracle@rac1 dump_dir]$ scp /mnt/dump_dir/expdp_orders_2tabs2* 192.168.X.247:/home/oracle/dump_dir
    oracle@192.168.X.247's password:
    bash: scp: command not found
    目标
    [root@localhost ~]# -bash: scp: command not found
    -bash: -bash:: command not found

    [root@localhost ~]# yum install openssh-clients
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirrors.aliyun.com
    * extras: mirrors.cn99.com
    * updates: mirrors.aliyun.com
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package openssh-clients.x86_64 0:5.3p1-123.el6_9 will be installed
    --> Processing Dependency: openssh = 5.3p1-123.el6_9 for package: openssh-clients-5.3p1-123.el6_9.x86_64
    --> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: openssh-clients-5.3p1-123.el6_9.x86_64
    --> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: openssh-clients-5.3p1-123.el6_9.x86_64
    --> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit) for package: openssh-clients-5.3p1-123.el6_9.x86_64
    --> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-123.el6_9.x86_64
    --> Running transaction check
    ---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed
    ---> Package openssh.x86_64 0:5.3p1-70.el6 will be updated
    --> Processing Dependency: openssh = 5.3p1-70.el6 for package: openssh-server-5.3p1-70.el6.x86_64
    ---> Package openssh.x86_64 0:5.3p1-123.el6_9 will be an update
    ---> Package openssl.x86_64 0:1.0.0-20.el6 will be updated
    ---> Package openssl.x86_64 0:1.0.1e-57.el6 will be an update
    --> Running transaction check
    ---> Package openssh-server.x86_64 0:5.3p1-70.el6 will be updated
    ---> Package openssh-server.x86_64 0:5.3p1-123.el6_9 will be an update
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================================================================================================================================================
    Package Arch Version Repository Size
    ================================================================================================================================================================================================================
    Installing:
    openssh-clients x86_64 5.3p1-123.el6_9 base 444 k
    Installing for dependencies:
    libedit x86_64 2.11-4.20080712cvs.1.el6 base 74 k
    Updating for dependencies:
    openssh x86_64 5.3p1-123.el6_9 base 277 k
    openssh-server x86_64 5.3p1-123.el6_9 base 329 k
    openssl x86_64 1.0.1e-57.el6 base 1.5 M

    Transaction Summary
    ================================================================================================================================================================================================================
    Install 2 Package(s)
    Upgrade 3 Package(s)

    Total download size: 2.6 M
    Is this ok [y/N]: Y
    Downloading Packages:
    (1/5): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm | 74 kB 00:00
    (2/5): openssh-5.3p1-123.el6_9.x86_64.rpm | 277 kB 00:00
    (3/5): openssh-clients-5.3p1-123.el6_9.x86_64.rpm | 444 kB 00:00
    (4/5): openssh-server-5.3p1-123.el6_9.x86_64.rpm | 329 kB 00:00
    (5/5): openssl-1.0.1e-57.el6.x86_64.rpm | 1.5 MB 00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 363 kB/s | 2.6 MB 00:07
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Updating : openssl-1.0.1e-57.el6.x86_64 1/8
    Updating : openssh-5.3p1-123.el6_9.x86_64 2/8
    Installing : libedit-2.11-4.20080712cvs.1.el6.x86_64 3/8
    Installing : openssh-clients-5.3p1-123.el6_9.x86_64 4/8
    Updating : openssh-server-5.3p1-123.el6_9.x86_64 5/8
    Cleanup : openssh-server-5.3p1-70.el6.x86_64 6/8
    Cleanup : openssh-5.3p1-70.el6.x86_64 7/8
    Cleanup : openssl-1.0.0-20.el6.x86_64 8/8

    Installed:
    openssh-clients.x86_64 0:5.3p1-123.el6_9

    Dependency Installed:
    libedit.x86_64 0:2.11-4.20080712cvs.1.el6

    Dependency Updated:
    openssh.x86_64 0:5.3p1-123.el6_9 openssh-server.x86_64 0:5.3p1-123.el6_9 openssl.x86_64 0:1.0.1e-57.el6

    Complete!

    安装完成之后就OK了!

  • 相关阅读:
    SQL SERVER中如何用SQL语句给表的栏位加注释sp_addextendedpropert
    baidu搜索出现错误提示页面
    ASP.NET MVC V2 Preview 1 发布 期望VS有更好的表现
    业务逻辑层实现事务处理
    FCKEidtor自動統計輸入字符個數(IE)
    Asp.Net 关于Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.问题的解决方法。
    Jquery Tabs 在asp.net 中的应用
    IBM总架构师寇卫东:话说程序员的职业生涯
    我喜欢的15个WordPress插件<转>
    The SqlParameter is already contained by another SqlParameterCollection.
  • 原文地址:https://www.cnblogs.com/ritchy/p/9851010.html
Copyright © 2011-2022 走看看