Limiting SSH Access

file, separating multiple users with spaces. Only users who appear on this line will have remote SSH access.

To do so, open sshd_config with Easy Editor:

 

# ee /etc/ssh/sshd_config

Add the following line (substitute your names for the usernames in italics):
AllowUsers curly larry moe


 

Save and exit (press [esc] for Easy Editor's main menu). For the above setting to take effect you'll need to reboot (see below) or restart the ssh daemon using the following command:

# /usr/rc.d/sshd restart