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了!

  • 相关阅读:
    D. Babaei and Birthday Cake--- Codeforces Round #343 (Div. 2)
    Vijos P1389婚礼上的小杉
    AIM Tech Round (Div. 2) C. Graph and String
    HDU 5627Clarke and MST
    bzoj 3332 旧试题
    codeforces 842C Ilya And The Tree
    codesforces 671D Roads in Yusland
    Travelling
    codeforces 606C Sorting Railway Cars
    codeforces 651C Watchmen
  • 原文地址:https://www.cnblogs.com/ritchy/p/9851010.html
Copyright © 2011-2022 走看看