Automate SSH key authorization with Rye
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