公钥管理器用于生成授权的密钥文件并将其分发到指定的服务器。

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发布了第一个版本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从数组中打印int值?   prepared语句Java中奇怪的异常PreparedStatement:参数索引超出范围   封装如何在OOP Java中为主方法编码?   java某些手机显示快捷方式徽章需要什么权限?   java TextView不会随OnItemSelectedListener更改   java注释处理器不会自动触发吗?   java Spring JPA如何计算外键数   c#对于这个简单的OOAD问题,哪种设计最优雅?   java如何处理while循环中的异常?   Android Studio错误:进程'command'/home/draven/Downloads/安卓studio/jre/bin/java''结束,退出值为非零2   在使用Payara服务器的Vaadin应用程序中导航到根目录时,java将丢失上下文根目录   使用contentType application/json而不是application/jsonpatch+json的java修补程序   带有tomcat的java HAproxy连接不足   Java:在应用过滤器后创建一个简单的通用方法进行计数   java如何使用多态性创建一个实例化对象的方法,然后用它们高效地填充ArrayList?