我正在开发一个解决方案,它将大量 SSH 密钥插入到我的 SSH 服务器的授权密钥文件中。有谁知道您可以插入到该文件中的密钥的限制?我们是在谈论十万、千还是数万?任何的想法?当您拥有大量密钥时,性能如何受到影响?
我想最好在不同的用户之间划分密钥,但我想知道一个用户的限制。
use*_*517 12
文件中的条目数没有限制。从源代码
auth2-pubkey.c
/* return 1 if user allows given key */
static int
user_key_allowed2(struct passwd *pw, Key *key, char *file)
{ ...
while (read_keyfile_line(f, file, line, sizeof(line), &linenum) != -1) {
char *cp, *key_options = NULL;
Run Code Online (Sandbox Code Playgroud)
如您所见,这只是简单地循环文件,直到 read_keyfile_line 返回 -1。
归档时间: |
|
查看次数: |
3522 次 |
最近记录: |