|
|
[root@localhost Packages]# scp6 S' g5 D q+ M& {+ C/ J( g
-bash: scp: command not found0 p7 R7 N; L1 c) I1 J7 f) T
% q, Q9 \( I2 u8 h安装scp 提供的包:8 z/ V1 d- z1 `' M
[root@localhost Packages]# rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm
( @9 J# j- ] A$ Nwarning: libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY4 e; {9 `2 m: s9 V" `8 a8 J% O6 {
Preparing... ########################################### [100%]' _" ]+ U# g' G0 \9 M7 b
1:libedit ########################################### [100%]3 K/ B, d+ i, C
8 j0 v6 v5 ^' C9 ][root@localhost Packages]# rpm -ivh openssh-clients-5.3p1-122.el6.x86_64.rpm 4 } Y. Q7 `2 X# t; [/ r% J O
warning: openssh-clients-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
8 k- Z; @% K/ z( DPreparing... ########################################### [100%]" T! _1 l& w, ?8 a. i
1:openssh-clients ########################################### [100%]
8 K: a; l* ?1 c& U8 x' ^' B1 _8 N3 n: |% j" J
# k) A* S" T( k1 X7 u0 r# b
. E: N/ B& k; U3 d" t
[root@localhost Packages]# rpm -ivh openssh-server-5.3p1-122.el6.x86_64.rpm
+ D9 J" c/ x% U) f8 nwarning: openssh-server-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
5 G& h/ C! g$ SPreparing... ########################################### [100%]4 \! z1 y/ X& f4 n
package openssh-server-5.3p1-122.el6.x86_64 is already installed
5 J5 A: t( F7 j7 i[root@localhost Packages]# rpm -ivh openssh-5.3p1-122.el6.x86_64.rpm
% z) ~- W2 n! m5 {# S4 Fwarning: openssh-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY2 j$ l2 S6 e' ~0 V+ o8 }! t. x, v
Preparing... ########################################### [100%]# |$ J+ i; l+ @. t0 n
package openssh-5.3p1-122.el6.x86_64 is already installed% y8 V4 S4 v% Z: Q* w" n0 L: |
1 Y9 i5 N" ]) U, L
; O) Y, K; A% U. h) x7 m9 }; ^* s使用yum源安装:3 g4 |( C3 h. Q0 K/ y/ Z- k
[root@webbs168 ~]# yum install -y openssh-clients5 W0 V3 Y8 P5 P+ w& Y; E
Loaded plugins: fastestmirror3 Y( o5 @2 X6 U! K0 H# |* q
Setting up Install Process
7 E) ~5 L$ ?, @6 fLoading mirror speeds from cached hostfile$ d5 `8 \ c7 ~8 G+ I
* base: mirrors.aliyun.com
# }- [) y8 ~4 F: f, \ * epel: ftp.iij.ad.jp
1 g+ L4 c8 f, U3 k2 @ * extras: mirrors.aliyun.com
/ t( E; Q. S$ p9 c& `2 Q9 V * updates: mirrors.aliyun.com
' G U9 r R4 M3 d, _file:///mnt/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/repodata/repomd.xml& w G& w5 b5 d: ^8 p; y
Trying other mirror.
/ p2 N+ W8 R% X$ G+ E ?8 b s w) EResolving Dependencies" X( V }; d- s
--> Running transaction check/ z; J% N: m4 y8 F2 S% ]
---> Package openssh-clients.x86_64 0:5.3p1-124.el6_10 will be installed
5 ?% {1 I% Q9 |) }5 o) w L8 O--> Processing Dependency: openssh = 5.3p1-124.el6_10 for package: openssh-clients-5.3p1-124.el6_10.x86_64
( |& o/ X* z# Y* n( a--> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-124.el6_10.x86_64
7 f. d! m0 b9 O" K2 F* Z; ~9 E--> Running transaction check
0 `! h4 Y4 l) y+ |---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed' E# {5 \6 W& g: X3 V
---> Package openssh.x86_64 0:5.3p1-122.el6 will be updated2 A5 s; y9 D9 d3 z5 z
--> Processing Dependency: openssh = 5.3p1-122.el6 for package: openssh-server-5.3p1-122.el6.x86_64- N) N5 @* m$ p5 L( S: }1 {
---> Package openssh.x86_64 0:5.3p1-124.el6_10 will be an update
# s* P1 [: A3 j' z7 B8 i( A, G T--> Running transaction check' I2 g1 Z- N( }3 x& s* }
---> Package openssh-server.x86_64 0:5.3p1-122.el6 will be updated2 ~ n4 P O% {2 g f
---> Package openssh-server.x86_64 0:5.3p1-124.el6_10 will be an update- X8 W* Q5 M+ G3 u
--> Finished Dependency Resolution# }/ D, h, w/ ?- C& [% e
5 X2 Q7 ^- k; B" M: kDependencies Resolved
5 c+ P; q4 J- \. X/ `% A# w. M, B. Y$ \8 b
========================================================================================
9 F8 Q1 x4 }! R, C. H3 b- j Package Arch Version Repository Size' J* s, j" R: S: q/ Z4 w
========================================================================================
! r5 S* \* V; eInstalling:0 R* v' q; B" d- y2 y( x" y
openssh-clients x86_64 5.3p1-124.el6_10 updates 444 k
6 H* g/ m \# x' q8 K0 T5 R! tInstalling for dependencies:, I! l6 H5 Z: }. \1 a \
libedit x86_64 2.11-4.20080712cvs.1.el6 base 74 k
$ G4 Z: g* N D& _Updating for dependencies:, Q7 N: \ F% {( A, F
openssh x86_64 5.3p1-124.el6_10 updates 278 k
: ~+ _1 u. A4 R openssh-server x86_64 5.3p1-124.el6_10 updates 330 k
" G8 m0 T0 V4 E. {$ d5 p% L: M9 C1 [, a: P( y
Transaction Summary
4 w: o* X* \! ^2 J% b========================================================================================. P9 X* j+ W" I. I' k% t
Install 2 Package(s)
* o% R$ o# k8 i" J* Y' vUpgrade 2 Package(s), K7 t T6 y$ i4 v( _+ b) m$ n
# M: @. O; [2 o, O" d2 p
Total download size: 1.1 M
" J9 `8 \; b% q% n$ J$ V, ~5 rDownloading Packages:
; `* r1 I2 d0 N(1/4): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm | 74 kB 00:00
/ x4 e; z" A. r# g |2 U N(2/4): openssh-5.3p1-124.el6_10.x86_64.rpm | 278 kB 00:00 / H* ^4 }1 E4 ~- @& T! B" V, L
(3/4): openssh-clients-5.3p1-124.el6_10.x86_64.rpm | 444 kB 00:00 # O* h4 t1 Y/ B1 |0 n
(4/4): openssh-server-5.3p1-124.el6_10.x86_64.rpm | 330 kB 00:00 - a# ~* K/ F6 ~* t0 r8 r x( G
----------------------------------------------------------------------------------------* b2 K" G8 F4 _0 j! n3 I" ~9 |
Total 543 kB/s | 1.1 MB 00:02 $ F/ n, u+ U; H8 e2 L
Running rpm_check_debug
' e/ _) Q& o* [2 j$ Y$ LRunning Transaction Test- v' `6 m: l: T& e0 r: w
Transaction Test Succeeded
# L+ D" j0 C( N8 _Running Transaction! ~* X0 b( I8 `$ P
Updating : openssh-5.3p1-124.el6_10.x86_64 1/6 9 b# ]( y2 M" ]8 c4 [. ?9 J5 W5 A
Installing : libedit-2.11-4.20080712cvs.1.el6.x86_64 2/6
- Y1 a" ^, d$ X+ L1 V0 e8 ^ Installing : openssh-clients-5.3p1-124.el6_10.x86_64 3/6
4 m% s0 s4 z* e% G+ I! E Updating : openssh-server-5.3p1-124.el6_10.x86_64 4/6
8 V) X' E' i1 ?: Q z Cleanup : openssh-server-5.3p1-122.el6.x86_64 5/6
* \9 g5 V |" g& N. g! N8 l Cleanup : openssh-5.3p1-122.el6.x86_64 6/6
; ?' ^3 e) ]' Z Verifying : libedit-2.11-4.20080712cvs.1.el6.x86_64 1/6 ( ?5 h+ F7 E3 R1 a
Verifying : openssh-server-5.3p1-124.el6_10.x86_64 2/6 _! P' j' N2 a+ B# u
Verifying : openssh-clients-5.3p1-124.el6_10.x86_64 3/6
+ Z# Z; W' i4 t; f2 H Verifying : openssh-5.3p1-124.el6_10.x86_64 4/6 . W {- h, H+ Z- s
Verifying : openssh-server-5.3p1-122.el6.x86_64 5/6
% h! _ A- J7 |+ ^! c Verifying : openssh-5.3p1-122.el6.x86_64 6/6
. [+ q, n7 o% h0 q
- k8 W! U* P" d8 kInstalled:
" e( N, z* @; _ openssh-clients.x86_64 0:5.3p1-124.el6_10 / L3 w% |' X9 m. Y9 F: F6 ^
: j; _% ?1 t2 j
Dependency Installed:7 k$ P% B5 t7 e
libedit.x86_64 0:2.11-4.20080712cvs.1.el6
. I5 U! q3 g; W4 m: j6 V
1 ]+ |, Z( i8 k. l6 J, ^Dependency Updated:$ N3 H" `/ y( N% J1 ^% v/ K6 R5 g
openssh.x86_64 0:5.3p1-124.el6_10 openssh-server.x86_64 0:5.3p1-124.el6_10
6 D9 E8 o$ k# w) F. b; b( O+ X* ~
: p/ ~* {# z" y( hComplete!9 Y4 }4 E6 Q0 I. x+ s8 k! o
: {* e, t: o# ]( M9 x2 ~7 t* C7 s% s0 N& q3 U" F9 H
这样scp命令就可以用了。" p- x7 ]8 v/ w
( m2 t7 w) \4 d/ H( f
" @; z/ v. G- f) n# g5 ^: m) _ |
|