Commercial Products
Feb '10
25

Automate SSH key authorization with Rye

posted by delano

I got annoyed with manually authorizing my public keys to ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2 so I added a feature to rye to automate the process.

$ rye authorize user@example.com

The expected output looks something like this:

$ rye authorize user@example.com
Authorizing user@example.com
Passwordless login failed for user
Password: ************
Added public keys for: 
/home/user/.ssh/id_dsa
/home/user/.ssh/id_rsa
Now try: ssh user@example.com

Installation

$ gem install -V rye

You can generate an SSH keypair with the following command iff you don't already have one (by default they're installed to ~/.ssh/id_rsa or ~/.ssh/id_dsa):

$ ssh-keygen -t rsa

I'm Delano Mandelbaum, the founder of Solutious Inc. I've worked for companies large and small and now I'm putting everything I've learned into building great tools. I recently launched a monitoring service called Stella.

You can also find me on:

-       Delano (@solutious.com)

Solutious is a software company based in Montréal. We build testing and development tools that are both powerful and pleasant to use. All of our software is on GitHub.

This is our blog about performance, development, and getting stuff done.

-       Solutious