I have set an encrypted LVM partition on my personnal server (Debian Jessie). So everytime I need to reboot it, I have to connect to dropbear which is installed in initramfs, unlock the disk, close connection and then, once the server has started, connect to the OpenSSH server.
The problem is that both server have different private/public key pair but the same IP address, and so my ssh client complain that the fingerprint saved in
~/.ssh/known_hosts differs from the one sent by the server.
Question 1 :
Is there a way to use the same private/public key pair in dropbear and OpenSSH server ? or Am I stuck using workaround like :
- using 2 different IPs for boot and up time.
- using 2 different ssh client for boot and up time...
Question 2 :
If it is possible to use the same key, how do I do that ? it seems that dropbears private keys are in a format that differs from OpenSSH, and seem to be encrypted, how do I convert them ?