Skip to main content

Control downloading/uploading publickeys.

Project description

# 機能概要

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

## YAMLの例

- &developers
- oyakata # Yakata Imagawa
- feiz # Kenta Azuma
- &superusers
- oyakata # Yakata Imagawa
title: 開発環境
members: *developers
tags: development
title: 本番環境
members: *superusers
tags: production

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

$ publickey config sample.yml -t production > ssh_config

生成された ssh_config:
# 本番環境
Port 22
User ubuntu
IdentityFile ~/.ssh/id_rsa

ServerAliveInterval 120

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

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

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

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

* 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).

Project details

Download files

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

Files for publickey, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size publickey-0.3-py2.7.egg (10.9 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size publickey-0.3.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page