Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to add a user for myself to login via SSH to a pfSense box. I don't want to just blindly go through the adduser command and inadvertently break something / open a vulnerability somewhere though. Looking at the config page in the WebUI:

pfSense Secure Shell Config Options

I can't find where to add users or to specify their keys. What is the right way to add users that can use SSH? Can I also safely use the AllowUsers directive to keep tighter control of those allowed to login via SSH?

Bonus: I would also like to disable root from being able to login via SSH. I can see the option PermitRootLogin in the /etc/ssh/sshd_config file, though I don't necessarily want to modify it directly as I could potentially lose those changes with updates/patches or changes through the WebUI. Thoughts?

share|improve this question
up vote 4 down vote accepted

Are you using an older version of pfsense? In 2.0+, users are maintained under System->User Manager ( 192.168.x.1/system_usermanager.php ). When you add a new user you can also paste in an authorized key for SSH. There's also a SSHDCond package that "acts as an access list frontend for ssh connections", although I have not tried it myself (and it's listed as Beta).

share|improve this answer
Not sure how I missed the user manager... I added an SSH group as well and only assigned shell type permissions. Seems to be working like a charm. Thanks! – Goyuix Oct 20 '12 at 23:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.