I was working on trying to grant a ‘regular’ user SSH access in OPNsense last night. After banging my head against the wall for some time (partially because the official documentation is outdated), I was able to figure it out.
(Do however note that this is different than how you grant a user SSH access in pfSense, where the steps do align with the outdated documentation.)
Here’s how you do it:
- Go to System -> Access -> Groups
- Create a new group called ‘remote_access’
- Go to System -> Access -> Users
- Create a new user with a valid shell (i.e. not
nologin
), and make sure to add a valid SSH key and to add the user to the group ‘remote_access’
- Create a new user with a valid shell (i.e. not
- Go to System -> Administration and navigate to the ‘Secure Shell’ Section.
- Under ‘Login Group’, select ‘wheel,remote_access’
This of course assumes that you have SSH already enabled and remotely accessible. However, assuming this is true, you should now be able to login using the newly created user.
Enjoyed this post? Check out my podcast!
If you found this interesting, you might enjoy "Nerding Out with Viktor" - my podcast where I dive deep into tech, entrepreneurship, and security with industry experts.