公共钥匙分配简单。
pubke的Python项目详细描述
需要为无密码ssh等设置私钥/公钥服务器连接 沟通?厌倦了手动复制公钥?
pubkey创建一个restful端点并用您想要的公钥进行应答 分享。默认值是纯文本,因此可以使用curl下载并应用 单步公开密钥。可选地,密钥可以包装在json中 其他用例的文档。
只需在源服务器上运行以下命令:
$ pubkey –auto # Starts the pubkey server with default settings and IP auto detection
INFO: pubkey file used: /Users/xxxxx/.ssh/id_rsa.pub INFO: pubkey server started at http://192.168.0.36:1080 Remote host command:
curl -s -S 192.168.0.36:1080 >> ~/.ssh/authorized_keys
Press ctrl-C to stop.
然后将上面提供的curl语句复制到 要将公钥添加到:
curl -s -S 192.168.0.36:1080 >> ~/.ssh/authorized_keys
完成。如果您没有得到一个错误(例如,无法访问的主机),您都设置好了。
有关更多信息,请访问github: https://github.com/fxstein/pubkey