How can I have the same ssh key for dual boot (ssh-keygen)
Philip Hands
phil at hands.com
Wed Apr 2 21:20:53 EST 2014
Nico Kadel-Garcia <nkadel at gmail.com> writes:
> On Tue, Apr 1, 2014 at 4:48 AM, Philip Hands <phil at hands.com> wrote:
>> Kevin Wilson <wkevils at gmail.com> writes:
>>
>>> I use:
>>> ssh-keygen -t rsa
>>> to generate a key file (id_rsa.pub) which I copy into authorized_keys2 on
>>> other machines in order to permit ssh to these machines without being
>>> asked for a password.
>>>
>>> The thing is that I have dual boot on this machine: one for fedora and
>>> one for ubuntu. The two key files which were generated on these machine
>>> are different.
>>>
>>> Is there a way so that I will have the same key file for both these fedora
>>> and
>>> ubuntu ?
>>
>> As mentioned by others, there is a way to do this, but I'd suggest that
>> you shouldn't want to.
>>
>> What's wrong with having an additional key in the authorized_keys file?
>
> It's not an "additoinal" key. It's a mismatched key for the same
> hostname in DNS and the same IP address. This causes every SSH client
> on the planet to complain about the mismatch, unless you've
> specifically disabled that check in your client configuration. And
> there is *no* tool besides a text editor for updating such changed
> records in the UNIX/Linux client text based client world besides a
> text editor.
The original question was about client authentication keys, not host
keys, unless I misunderstood the bit about:
I use:
ssh-keygen -t rsa
to generate a key file (id_rsa.pub) ...
Cheers, Phil.
--
|)| Philip Hands [+44 (0)20 8530 9560] http://www.hands.com/
|-| HANDS.COM Ltd. http://ftp.uk.debian.org/
|(| 10 Onslow Gardens, South Woodford, London E18 1NE ENGLAND
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20140402/21bddbb0/attachment.bin>
More information about the openssh-unix-dev
mailing list