Enable ssh, turn off pw. Every time I turn off pw the system deletes my key?

Started by HeneryH, February 19, 2025, 05:14:56 PM

Previous topic - Next topic
I'm trying to enable ssh login as root with an ssh key for my system and disable password access.
  • I enable ssh
  • enable pw access
  • scp my public key to opnsense
  • successfully ssh into the opnsense machine
  • disable pw access, since my key works
  • ssh with key fails
  • Seems like disabling the pw access removes my key and key access

Am I missing something?

THanks

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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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!