Tigraine

Daniel Hoelbling-Inzko talks about programming

How to use a PuttyGen private key to connect to a OpenSSH server

Posted by Daniel Hölbling on November 27, 2011

A quick reminder in case I ever forget: If you need to generate a new public/private key on a Windows box your best bet is PuttyGen. The Problem is that PuttyGen will create a SSH2 key that you can't use in your authorized_keys file as OpenSSH is using a different key format.

Thankfully ssh-keygen supports converting keys from one format into another:

ssh-keygen -i -f my_putty_key > ssh2_compatible_key.pub

Then just upload the file to your server and append it to your authorized_keys:

cat key.pub >> ~/.ssh/authorized_keys

Filed under uncategorized
comments powered by Disqus

My Photography business

Projects

dynamic css for .NET

Archives

more