OPNsense Forum

English Forums => 26.1 Series => Topic started by: kmschneider1 on February 22, 2026, 04:28:24 PM

Title: Enable SSH at Console
Post by: kmschneider1 on February 22, 2026, 04:28:24 PM
I am looking to find out how to enable ssh at the Console NOT using the WebGUI. I have searched extensively but the information always points to the WebGUI or is issues with existing SSH setups. For reference as to why I need the console. I made a dumb noob move while trying out caddy and did not backup first. My WebGUI is currently inaccessible. Everything else works perfectly so I am trying to fix it via the console since I think I know what is causing the issue. However, my opnsense box is in my basement and I apparently did not enable ssh before all this happened. 

I do know that a reinstall will resolve this but since everything else (VPN,Port Forwarding, DHCP Leases) works, I am trying to fix it without needing to redo everything.
Title: Re: Enable SSH at Console
Post by: patient0 on February 22, 2026, 04:46:53 PM
On the console use:

configctl service start opensshor
configctl openssh start
Not sure if the 'service start' survives a reboot.
The documentation uses SSH as an example: https://docs.opnsense.org/development/backend/configd.html#naming-convention

And: in the folder /conf/backup are backups of your previous config, in case you need them.
Title: Re: Enable SSH at Console
Post by: Kinerg on February 22, 2026, 04:53:04 PM
Here's Grok's take (https://grok.com/share/c2hhcmQtMi1jb3B5_e06c31e6-99ee-4b0e-a070-76eba9559546?rid=3c5ad929-7a20-4f4d-8104-2be288bcdc94). Can't verify if it works but it should get you started in the right direction.

Title: Re: Enable SSH at Console
Post by: Nephiria on February 22, 2026, 08:08:56 PM
Have you tried restoring a backup? As far as I know, they are created by default after every change, and you can also do this from the console.