Update SSH Fingerprint

Started by linuxjohnny, July 24, 2023, 03:36:09 PM

Previous topic - Next topic
Hi there

When i'm setting up a new Cloud Environment i will clone the Firewall's from a Template. After cloning all Firewalls do have the same SSH Fingerprint.
Is there a way to regnerate this fingerprints?

In pfsense there is a way like this:
https://forum.netgate.com/topic/150789/update-ssh-public-key

Many thanks for your replies :)

Kind regards
Kevin

Ok, i got a workaround. I can delete everything in /conf/sshd/* and disable SSH Access in the GUI and reenable SSH Access. Then all Files will be recreated with a new Fingerprint.

But maybe someone do know a CLI only based solution :)?

Just drop /conf/sshd directory and reboot. That's all.

Cloning an existing machine obviously really clones it. ;)


Cheers,
Franco