|
|
[root@localhost Packages]# scp
3 j/ n" J& g4 ~4 }* P' N( T-bash: scp: command not found0 Y* W# q1 k" z \& p( d1 `
& d' E9 }! {7 Q+ l0 s
安装scp 提供的包:
6 `' f. ~* a7 Q* u[root@localhost Packages]# rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm ) o9 ?) E& }5 g: u3 U
warning: libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY* S- }5 ^- U! f: C
Preparing... ########################################### [100%]0 | F6 o* W* @1 Y h, v
1:libedit ########################################### [100%]+ G3 W+ a0 n+ d! X: M+ ?
2 u( t4 I2 m5 u4 i9 y
[root@localhost Packages]# rpm -ivh openssh-clients-5.3p1-122.el6.x86_64.rpm
" Q' j1 g) A* cwarning: openssh-clients-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY9 t3 u! u. B# f. M: g* D4 g
Preparing... ########################################### [100%]
- F l4 l. g. ]% v 1:openssh-clients ########################################### [100%]
) R2 ] i8 U9 e& a* c3 P i. T$ g2 x- P0 A2 N
! i7 _4 c' ~! e* Y$ K
$ l0 @' Z" E Z% X- Q: D. g8 L! E[root@localhost Packages]# rpm -ivh openssh-server-5.3p1-122.el6.x86_64.rpm 1 {1 L. ~$ V% C$ {, o
warning: openssh-server-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY9 k- g9 J& W* ~& i2 o! w" v4 H
Preparing... ########################################### [100%]- V3 k+ _" C0 T9 D, x
package openssh-server-5.3p1-122.el6.x86_64 is already installed, y5 c4 Z6 X6 q$ ]
[root@localhost Packages]# rpm -ivh openssh-5.3p1-122.el6.x86_64.rpm
, g" z9 K5 h8 `$ R1 g- gwarning: openssh-5.3p1-122.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
: j! ~* }9 e s3 p/ F$ {1 l/ ]Preparing... ########################################### [100%]
! W* J2 B( V, j u7 _% U/ ^3 `2 G package openssh-5.3p1-122.el6.x86_64 is already installed2 \' O8 w' `; I8 {7 t$ B q
9 s% j9 y! Y8 ^4 W* E% s
: D, U1 Q9 k @* u( `0 A+ G# W使用yum源安装:# B5 F% {7 L ?
[root@webbs168 ~]# yum install -y openssh-clients
# p/ Q! V6 |% a+ E* b) h. r* nLoaded plugins: fastestmirror9 A: U; l5 C; F+ L
Setting up Install Process9 Y/ M* S W: L( R, w: I
Loading mirror speeds from cached hostfile3 d' G* K7 V6 L% y. C
* base: mirrors.aliyun.com
. R" ^2 r- h1 W) b9 V! q7 k * epel: ftp.iij.ad.jp
& @7 z4 E$ T0 v/ C- G' V * extras: mirrors.aliyun.com, M! F1 ^# v* v2 R5 D F
* updates: mirrors.aliyun.com0 c2 c* [/ }9 G# G. v6 x8 |
file:///mnt/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/repodata/repomd.xml2 N/ b, p' \* C4 U
Trying other mirror.
# h9 B4 Y9 o5 ]Resolving Dependencies
O: L, S! I1 D6 \3 b# R- s5 l2 b--> Running transaction check- i4 G, u2 X6 N3 w5 ]2 ^
---> Package openssh-clients.x86_64 0:5.3p1-124.el6_10 will be installed n* _! u3 v! _7 `% V2 c
--> Processing Dependency: openssh = 5.3p1-124.el6_10 for package: openssh-clients-5.3p1-124.el6_10.x86_646 D) J: C* |! z' r( ?# q
--> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-124.el6_10.x86_641 a! g1 i& y0 N7 Y, }; Y
--> Running transaction check
; Q8 L1 n% G; s* e$ ~* U% C9 Q---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed, a' H' s4 o. W; N
---> Package openssh.x86_64 0:5.3p1-122.el6 will be updated
7 z* _4 t3 A1 {: }--> Processing Dependency: openssh = 5.3p1-122.el6 for package: openssh-server-5.3p1-122.el6.x86_64/ q+ J! ?5 L5 y6 W3 A/ x
---> Package openssh.x86_64 0:5.3p1-124.el6_10 will be an update7 v! S" F5 D2 B
--> Running transaction check! t7 b: v5 L/ e# v+ k$ ~
---> Package openssh-server.x86_64 0:5.3p1-122.el6 will be updated6 Y0 c8 m3 J7 O, @" X; z
---> Package openssh-server.x86_64 0:5.3p1-124.el6_10 will be an update
- {1 N9 G% s q& B2 C--> Finished Dependency Resolution# J# n) u K5 H6 w
4 H" ] C: Q1 H' U9 O
Dependencies Resolved
1 ^$ i& b6 Y; |
+ h6 g* n6 p; ]6 n! O- V: \ E0 M: {& o========================================================================================1 P0 ?) N4 N3 `) T0 m! t5 l+ |
Package Arch Version Repository Size" w' p; n7 U3 c5 h2 E2 B
========================================================================================5 Q& G" g! n- Y& _. m' v
Installing:# d7 C- Q! L' j! Z3 F' O
openssh-clients x86_64 5.3p1-124.el6_10 updates 444 k
& d% |; }5 p4 OInstalling for dependencies:6 n$ k, n8 W- N" A7 N+ K7 }
libedit x86_64 2.11-4.20080712cvs.1.el6 base 74 k& D3 ?) J4 c% k0 t6 c, r
Updating for dependencies:
' B- {9 w5 E$ d4 I openssh x86_64 5.3p1-124.el6_10 updates 278 k
$ g5 U' N5 F4 h! C* n; R# G openssh-server x86_64 5.3p1-124.el6_10 updates 330 k) H3 T% H- O$ U
) o5 ]6 f2 V) p, M$ oTransaction Summary( @6 `9 t7 H) W7 a, k
======================================================================================== [" Z( t, h: n" g d
Install 2 Package(s)5 x# L9 [0 \: S9 D
Upgrade 2 Package(s)2 i, J4 H" G6 k4 S& h& }7 @" T
- ?2 I% P- k! X
Total download size: 1.1 M
" c @) ^% L: p+ q' D; P8 {. r! iDownloading Packages:
: t+ M$ V; L! v9 A- N(1/4): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm | 74 kB 00:00 ' G; _# Q" [# Z8 d ?% ]6 q7 |2 K
(2/4): openssh-5.3p1-124.el6_10.x86_64.rpm | 278 kB 00:00
0 F4 E% s. ?* K1 Y# h. h(3/4): openssh-clients-5.3p1-124.el6_10.x86_64.rpm | 444 kB 00:00 . ]) N* t& t" M8 H# V* v) W! H: v
(4/4): openssh-server-5.3p1-124.el6_10.x86_64.rpm | 330 kB 00:00
' x, Y: H" z* V* B----------------------------------------------------------------------------------------
4 @& r5 Q9 E1 @8 DTotal 543 kB/s | 1.1 MB 00:02
& E% N8 T# e% g+ R2 \/ LRunning rpm_check_debug
6 ]- U6 I3 ?# }* h6 KRunning Transaction Test" ]7 W1 ^; A/ g+ M8 v
Transaction Test Succeeded# X- l$ x: Q2 O! A n
Running Transaction* M5 a7 p0 g1 k4 [5 w( l0 j$ w" z
Updating : openssh-5.3p1-124.el6_10.x86_64 1/6
* ?: h# W( o" B: a* n Installing : libedit-2.11-4.20080712cvs.1.el6.x86_64 2/6
% o% S% e6 o2 I/ H) c# {$ E Installing : openssh-clients-5.3p1-124.el6_10.x86_64 3/6
+ h0 T' g- {5 ?) d) O; `, g Updating : openssh-server-5.3p1-124.el6_10.x86_64 4/6
; D7 L3 j& n' T* ]% d Cleanup : openssh-server-5.3p1-122.el6.x86_64 5/6
* K ? Q/ z- G Cleanup : openssh-5.3p1-122.el6.x86_64 6/6
" q ~* w& c$ j; K, U: H Verifying : libedit-2.11-4.20080712cvs.1.el6.x86_64 1/6 # t. b- \3 p9 V
Verifying : openssh-server-5.3p1-124.el6_10.x86_64 2/6 1 C, T" _ B$ z
Verifying : openssh-clients-5.3p1-124.el6_10.x86_64 3/6
" g# q) ]- C+ O: ` Verifying : openssh-5.3p1-124.el6_10.x86_64 4/6
8 N! C3 [# Q% B# ]' M( k# q3 W4 R Verifying : openssh-server-5.3p1-122.el6.x86_64 5/6
3 p# o& }# U, t: o Verifying : openssh-5.3p1-122.el6.x86_64 6/6
. i+ F. o2 p; u9 i4 u1 q! o* S# R2 |+ P8 h- ~ _" |& }
Installed:5 j- L' D" Y+ t ~7 a! B% n
openssh-clients.x86_64 0:5.3p1-124.el6_10 5 j) h2 ^3 O; V# F# `8 B, p- B; M- d
+ K5 p, m6 a& R2 CDependency Installed:9 w1 A% l8 [# P5 R" q
libedit.x86_64 0:2.11-4.20080712cvs.1.el6
$ P* T: K4 s2 K4 J/ y2 b2 [0 P9 m' n5 z8 ?3 z* M
Dependency Updated:
; o; Y, H$ o+ t5 g+ P' F! \ openssh.x86_64 0:5.3p1-124.el6_10 openssh-server.x86_64 0:5.3p1-124.el6_10
- L* _5 g5 E4 I0 N8 \# u, @ X7 Z! `0 R5 Z5 w9 D
Complete!
0 x* H: f& R0 a& r( e2 r6 ~1 |
2 {# _: N7 X- c1 J5 t1 P, l. M ?! c# d% k" t
这样scp命令就可以用了。
4 x0 c7 } v8 e8 l5 H1 U. f) g( V2 |
6 m! f( z; w3 d& H0 F9 [( q( J. b( @# I! w( r
|
|