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.
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!