While I normally use OpenSSH I have Dropbear installed on a Debian system to provide a small SSH server for unlocking disk encryption during initramfs boot phase.
Dropbear and OpenSSH have different formats key files. I also don’t want them to share the key pair and not convert Dropbear’s key pair to OpenSSH.
How to just display Dropbear’s public key in the OpenSSH format and/or its fingerprint?
Best Answer
Dropbear uses a binary format for storing the key and has no second file for storing the public key, especially not in a human-readable form.
The program
dropbearkey
is responsible for key generation but will also display the public key for the binary key file. The-y
switch is important for reading the file, not writing it!