|
|
本帖最后由 rui 于 2018-6-22 07:43 编辑
6 x5 v' D! |5 j. `5 A9 O
) n4 w; W& r4 X) ^( K9 h' ]sshd安装* h. z# B3 e6 K( W) K l- c
ssh客户端不能使用- k- F- @" ~2 p0 D0 ?
解决方法:6 S3 C. \" Q" p; n$ x
yum -y install openssh-clients- E9 Y) ]2 ^7 y: x( P
: W7 C: S7 q6 A4 d6 G. q- o
' p3 \4 Q- Q' m; h% t/ q" A" Q4 [sshd服务不正常,安装:* [7 R2 @6 c9 [8 X7 Q% d8 Z9 p8 B
7 S2 m7 y, |- D$ ]& K% g7 c& B[root@1eb419a7b2e7 /]#yum install -y openssh-server8 S! c: D7 k7 D# x S- c
[root@1eb419a7b2e7 /]# systemctl start sshd.service
$ C2 o. \6 [, n$ Q[root@1eb419a7b2e7 /]# systemctl enable sshd.service
& w1 @: l- M; s" F# O& U[root@1eb419a7b2e7 /]# netstat -ntlp; P3 g! R3 x7 r! v( Z
Active Internet connections (only servers)
- b: r& P: D9 a8 tProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
, @' c& S- v! l. C& O/ Atcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 439/sshd |" r6 Z3 c$ W9 ^& h# b" a
tcp6 0 0 :::22 :::* LISTEN 439/sshd
" k1 o3 K. W+ G4 P' K/ P+ o |
|