Safely adding SSH users to pfSense
Posted
by
Goyuix
on Server Fault
See other posts from Server Fault
or by Goyuix
Published on 2012-10-19T16:32:52Z
Indexed on
2012/10/19
17:03 UTC
Read the original article
Hit count: 693
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:
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?
© Server Fault or respective owner