adamcooke / key-installer

Installs SSH public keys on remote hosts from a single command

This URL has Read+Write access

adamcooke (author)
Wed Nov 19 14:26:46 -0800 2008
commit  1e4397a43fc6c349cd1815f67da0e7a74301f768
tree    c809f2756ba4514a800282edcea5b194366c694c
parent  f631b710990a0153146930c91d0ca317d898f108
name age message
file .gitignore Wed Nov 19 14:06:29 -0800 2008 initial commit [adamcooke]
file README.rdoc Wed Nov 19 14:25:00 -0800 2008 another readme update [adamcooke]
directory bin/ Wed Nov 19 14:06:29 -0800 2008 initial commit [adamcooke]
file key_installer.gemspec Wed Nov 19 14:26:46 -0800 2008 globbing == not safe [adamcooke]
directory lib/ Wed Nov 19 14:06:29 -0800 2008 initial commit [adamcooke]
README.rdoc

SSH Key Installation

A tiny script to copy your SSH public keys from your local machine to a remote server. It’ll search your .ssh/ folder for known public keys and if it finds one, it’ll add it to the remote authorized_keys file.

Install

  gem sources -a http://gems.github.com
  sudo gem install adamcooke-key-installer

Usage

Install the default public key to a server called myserver.com for a user called ‘dave’

  install-key dave@myserver.com

Install a key from /home/user/my_key.pub to a server

  install-key phil@anotherserver.com --key /home/user/my_key.pub

Install default keys to a server running an un-standard SSH port

  install-key sarah@mylittlebox.com -p 12345