things I didn’t know until today

March 9, 2011

okay, so I guess I kinda knew them but had never tried them.

 

1.  generate rsa key using openssl or what not

2. have the private key on disk in a .pem file

3. run ssh-keygen -y -f myprivatekey.pem > ~/.ssh/authorized_keys

4. ssh -i myprivatekey.pem user@host_with_pub_key_on_it

simple as pie.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: