SSH question
Matthew Seaman
m.seaman at infracaninophile.co.uk
Mon Jun 7 12:09:16 PDT 2004
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
> i686-pc-linux-gnu
>
> 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
> ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Neither one seems
> 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
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040607/a1c37504/attachment.bin
More information about the freebsd-questions
mailing list