公钥管理器用于生成授权的密钥文件并将其分发到指定的服务器。
publickeymanager的Python项目详细描述
说明
此程序可用于管理多台服务器上的公钥。 在配置文件中指定具有公钥的用户具有的 使用特定用户名登录到哪个服务器的权限。
如果您有多个用户登录到 在多个服务器上共享帐户。
配置文件
配置文件有以下选项:
[keys] Specify one public key per user. [group:`users`] Use this if you want to bundle multiple users to one group. Say for example a sysadmin group. [group:`name`] Specify a group of servers. `name` is the name of the group. A config file can hold multiple [group:`name`] directives.
[组:名称]
的选项组的选项:
user_groups A reference to groups defined in [group:`users`]. All users in the group have access to the servers in this group. access Which individual users have access to servers in this group. servers A list of servers which belong to this group. [server:`name`] Specify a server. A config file can hold multiple [server:`name`] directives. The name is the name of the server. A name can be referenced in a server group.
[服务器:名称]
的选项服务器的选项:
hostname The hostname of the server. user The username that is used to login to the server. groups Define which groups have access to this server. Groups need to exist in [group:`name`] access Define which users have access to this server. Users need have a key file mentioned in [keys].
配置文件示例
显示所有选项的配置文件示例:
[keys] roland=rvanlaar.pub example_user=example.pub example_user2=example2.pub [group:users] sysadmin = roland [group:remote] user_groups = sysadmin access = example_user1 servers = example_server1 example_server2 [server:localhost] hostname = 127.0.0.1 user = roland groups = sysadmin access = example [server:example_server1] hostname = example.com user = example [server:example_server2] hostname = example.org user = example
更改
0.3
- 新的授权密钥文件将具有与旧文件相同的权限。
0.2.4
- 增加支票。服务器需要至少有一个用户 访问它。
0.2.3
- 增加了时间。睡眠(1);需要通过shell.send正确移动。
- 修复了组的分析错误:用户
0.2.2
- 修复了组:用户的分析错误。
- [组:用户]重命名为[组:用户]。
0.2.1
- 拆下旧的PDB管路。
0.2
- 修复了中断的函数parse配置。
- 在长描述中添加了更改和自述文件。
0.1.2
- 公钥的目录可以用-d选择。
- 添加了更多解释性错误消息。
0.1.1
- 固定鸡蛋安装。
0.1
- 向pypi发布了第一个版本。