How can I have the same ssh key for dual boot (ssh-keygen)

Martin Hecht hecht at
Tue Apr 1 18:34:44 EST 2014

one thing not yet mentioned by others:
You should not only synchronize the keys in ~/.ssh/ but, more important,
in order to avoid that all other clients complain about a suspeced man
in the middle attack, you should copy the host keys located in /etc/ssh/
(e.g. by temporarily putting them on an usb medium during reboot, or by
mounting the root partition of the other linux e.g. somewhere below /mnt
- just once for copying the files). Then, clean up the
~/.ssh/known_hosts files on the other machines.

On 04/01/2014 09:05 AM, Kevin Wilson wrote:
> I use:
> ssh-keygen -t rsa
> to generate a key file ( 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 ?
> regards,
> Kevin
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at

More information about the openssh-unix-dev mailing list