From owner-freebsd-questions@FreeBSD.ORG Thu Dec 28 14:01:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DFB0F16A403 for ; Thu, 28 Dec 2006 14:01:23 +0000 (UTC) (envelope-from fbsd@aleborg.se) Received: from smtp1.webbpost.se (smtp1.webbpost.se [193.17.218.9]) by mx1.freebsd.org (Postfix) with ESMTP id 34D0C13C466 for ; Thu, 28 Dec 2006 14:01:22 +0000 (UTC) (envelope-from fbsd@aleborg.se) Received: from [192.168.1.102] ([213.134.110.241]) by smtp1.webbpost.se (smtp1.webbpost.se) with ASMTP id GAD57721; Thu, 28 Dec 2006 15:01:21 +0100 Message-ID: <4593CE34.2000301@aleborg.se> Date: Thu, 28 Dec 2006 15:01:24 +0100 From: Patrik Jansson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Matthew Seaman References: <4593BC14.90108@aleborg.se> <4593C7BA.9000309@infracaninophile.co.uk> In-Reply-To: <4593C7BA.9000309@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-IndexStatus: 0 Cc: freebsd-questions@freebsd.org Subject: Re: Text based puttygen or equivalent X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2006 14:01:24 -0000 Matthew Seaman wrote: > Patrik Jansson wrote: > > >> I want to convert OpenSSH keys to PuTTy format automagically in >> FreeBSD so I'm looking for a text based application for this. >> Is there any? >> > > ssh-keygen(1). Specifically the '-e' option. putty uses the same > format as the commercial SSH implementation. > Yes, but that only exports the public key. I need to convert the private key to one which PuTTY likes. Something like: PuTTY-User-Key-File-2: ssh-dss Encryption: aes256-cbc Comment: imported-openssh-key Public-Lines: 10 yadayada... public key... Private-Lines: 1 yadayada Private-MAC: yadayda Cheers, Patrik