首页 > 其他 > 详细

优化SSH配置(一键完成增加若干参数)

时间:2018-10-14 15:57:02      阅读:157      评论:0      收藏:0      [点我收藏+]

更改ssh服务远程登录的配置。主要的操作是在ssh的配置文件加入下面5行文本到第13行前。(下面参数的具体含义见其他课程。)

Port 52113
PermitRootLogin no
PermitEmptyPasswords no
UseDNS no
GSSAPIAuthentication no

[root@XM ~]# sed ‘13i Port 52113\nPermitRootLogin no\nPermitEmptyPasswords no\nUseDNS no\nGSSAPIAuthentication no‘ 1.txt
1
2
3
4
5
6
7
8
9
10
11
12
Port 52113
PermitRootLogin no
PermitEmptyPasswords no
UseDNS no
GSSAPIAuthentication no
13
14
15
16
17
18
19
20
[root@XM ~]#

优化SSH配置(一键完成增加若干参数)

原文:https://www.cnblogs.com/Confusedren/p/9785000.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!