OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: linuxjohnny on July 24, 2023, 03:36:09 PM

Title: Update SSH Fingerprint
Post by: linuxjohnny on July 24, 2023, 03:36:09 PM
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
Title: Re: Update SSH Fingerprint
Post by: linuxjohnny on July 24, 2023, 06:04:46 PM
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 :)?
Title: Re: Update SSH Fingerprint
Post by: franco on July 25, 2023, 11:57:05 AM
Just drop /conf/sshd directory and reboot. That's all.

Cloning an existing machine obviously really clones it. ;)


Cheers,
Franco