欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

scp传输提示bash: scp: command not found

程序员文章站 2022-04-24 19:51:07
其中一端缺少scp相关的包源[oracle@rac1 dump_dir]$ scp /mnt/dump_dir/expdp_orders_2tabs2* 192.168.X.247:/home/oracle/dump_diroracle@192.168.X.247's password: bash: ......

其中一端缺少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了!