Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Control downloading/uploading publickeys.

Project Description
# 機能概要

* YAMLに設定したユーザーの公開鍵をGithubからダウンロード
* YAMLに設定したホストにauthrized_keysファイルを配置
* YAMLの設定から~/.ssh/config 用ファイルを生成

## YAMLの例

sample.yml:
```
group:
- &developers
- oyakata # Yakata Imagawa
- feiz # Kenta Azuma
- &superusers
- oyakata # Yakata Imagawa


development.example.com:
title: 開発環境
hostname: 127.0.0.1
members: *developers
tags: development


example.com:
title: 本番環境
hostname: 127.0.0.1
members: *superusers
tags: production
```

### ~/.ssh/config を生成

$ publickey config sample.yml -t production > ssh_config

生成された ssh_config:
```
Host example.com
# 本番環境
HostName 127.0.0.1
Port 22
User ubuntu
IdentityFile ~/.ssh/id_rsa

ServerAliveInterval 120
```

### Githubの公開鍵を一括取得

$ publickey get sample.yml development.example.com > authorized_keys # oyakata, feizの鍵
$ publickey get sample.yml example.com > authorized_keys # oyakataの鍵のみ


### ファイルをホストに配置

$ publickey put -s authorized_keys example.com # ファイルを指定してput
$ publickey put -e sample.yml example.com # Githubの鍵をダウンロードしてput


2015-02-08:
* change 'put' operation.
* retry with password authentication when publickey authentication failed.
2014-10-24: version '0.1'
* support 'get/put' operation.
2014-10-24: version '0.2'
* support 'config' operation(generate ~/.ssh/config from yaml).
2014-10-31: version '0.2.2'
* support 'echo' operation(trying to connect remote host).
Release History

Release History

This version
History Node

0.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
publickey-0.3-py2.7.egg (10.9 kB) Copy SHA256 Checksum SHA256 2.7 Egg Feb 8, 2015
publickey-0.3.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting