首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Linux 初始化检查列表5

Linux 初始化检查列表5

作者头像
franket
发布2021-11-26 15:02:06
发布2021-11-26 15:02:06
93600
代码可运行
举报
文章被收录于专栏:技术杂记技术杂记
运行总次数:0
代码可运行

RSA key

一般建议不使用密码,而是使用RSA 证书进行登录,并且 RSA证书本身再加密

将有权限登入的公钥添加到 authorized_keys

代码语言:javascript
代码运行次数:0
运行
复制
[saops@check-list ~]$ ssh-keygen -t rsa 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/saops/.ssh/id_rsa): 
Created directory '/home/saops/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/saops/.ssh/id_rsa.
Your public key has been saved in /home/saops/.ssh/id_rsa.pub.
The key fingerprint is:
3f:05:e8:af:c8:f3:42:3b:0b:d5:c6:63:75:a9:9c:6d saops@check-list
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|         .   .   |
|        . o o    |
|       + o *     |
|      . S + E    |
|     ..o + o     |
|    .. .  +      |
|     o=. . .     |
|      +*o        |
+-----------------+
[saops@check-list ~]$ 
[saops@check-list ~]$ cd .ssh/
[saops@check-list .ssh]$ ls
id_rsa  id_rsa.pub
[saops@check-list .ssh]$ vim  authorized_keys
[saops@check-list .ssh]$ ll authorized_keys 
-rw-rw-r--. 1 saops saops 1209 Mar 29 17:11 authorized_keys
[saops@check-list .ssh]$ chmod 600 authorized_keys 
[saops@check-list .ssh]$ ll 
total 12
-rw-------. 1 saops saops 1209 Mar 29 17:11 authorized_keys
-rw-------. 1 saops saops 1675 Mar 29 17:07 id_rsa
-rw-r--r--. 1 saops saops  395 Mar 29 17:07 id_rsa.pub
[saops@check-list .ssh]$ 

参数调整

可以调整部分参数使系统有较好的表现,或放开某些因为安全考虑而显得过于保守的设置,还有一些是基于特定应用场景的定向调优

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • RSA key
  • 参数调整
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档