OPNsense Forum

English Forums => General Discussion => Topic started by: HeneryH on February 19, 2025, 05:14:56 PM

Title: Enable ssh, turn off pw. Every time I turn off pw the system deletes my key?
Post by: HeneryH on February 19, 2025, 05:14:56 PM
I'm trying to enable ssh login as root with an ssh key for my system and disable password access.

Am I missing something?

THanks
Title: Re: Enable ssh, turn off pw. Every time I turn off pw the system deletes my key?
Post by: Patrick M. Hausen on February 19, 2025, 05:22:10 PM
You must use the UI to add your public key to the user. Everything done directly on the command line will be overwritten by the configuration management.
Title: Re: Enable ssh, turn off pw. Every time I turn off pw the system deletes my key?
Post by: HeneryH on February 19, 2025, 05:50:04 PM
Quote from: Patrick M. Hausen on February 19, 2025, 05:22:10 PMYou must use the UI to add your public key to the user. Everything done directly on the command line will be overwritten by the configuration management.
That did it!!  Thank you Patrick!