« Sending iMessages from the command line | Main | Dealing with winmail.dat attachments »
Thursday
Feb192015

Update to: SSH/SSL & making security non-onerous

For years I've done the following to make ssh/scp straightforward between my computers:

ssh-keygen -t rsa    (on 'new' computer)
copy ~/.ssh/id_rsa.pub to a tempfile on the 'old' computer
cat tempfile >> ~/.ssh/authorized_keys

I've implemented a TextExpander snippet to make the second part of this easier (appending id_rsa.pub from the 'new' computer to the end of authorized_keys on the 'old' computer):

cat ~/.ssh/id_rsa.pub | ssh %filltext:name=user:default=hroe%@%filltext:name=hostname:width=40% "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

which I trigger with: scpsshkey and generates something looks like:

cat ~/.ssh/id_rsa.pub | ssh username@hostname.blah "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Another little rough edge sanded down.