找回密码
 注册
查看: 3847|回复: 0

sshd安装方法

[复制链接]

40

主题

29

回帖

471

积分

新手上路

积分
471
发表于 2018-6-22 07:37:48 | 显示全部楼层 |阅读模式
本帖最后由 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:55 , Processed in 0.022509 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表