Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 20:08:54 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Bart Silverstrim <bsilver@chrononomicon.com>
Cc:        freebsd-questions Questions <freebsd-questions@freebsd.org>
Subject:   Re: SSH question
Message-ID:  <20040607190854.GA5453@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <EC92E26E-B8B0-11D8-9892-000A956D2452@chrononomicon.com>
References:  <EC92E26E-B8B0-11D8-9892-000A956D2452@chrononomicon.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 07, 2004 at 02:31:43PM -0400, Bart Silverstrim wrote:

> While the server I want to copy FROM is apparently running
> sshd2: SSH Secure Shell 3.2.3 (non-commercial version) on=20
> i686-pc-linux-gnu
>=20
> I have created the pub key on the FreeBSD system with
> ssh-keygen -t dsa
> then copied the resulting .pub file to the other server with the name=20
> ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2.  Neither one seems=20
> to work, and I don't see errors being generated in the logs.

Yes -- the public keys generated by OpenSSH and SSH Corp versions of
ssh(1) are in different formats.  You can use ssh-keygen(1) to convert
a public key produced by the SSH Corp product into a format the
OpenSSH can cope with:

    % ssh-keygen -i -f ssh-corp-key.pub > openssh-key.pub

Or you can got the other way round:

    % ssh-keygen -e -f openssh-key.pub > ssh-corp-key.pub

('i' is for import, 'e' is for export).  You want to do the second,
and then copy the transformed public key into the authorized_keys file
on the target host.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAxL1GiD657aJF7eIRAtSTAJ4w8KEokMxIYTJt3wMCeWmBPelEfgCcDWby
KY2g4Q5GIa/2eq78yulMDwo=
=xuHn
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040607190854.GA5453>