Securing SSH access on a DirectAdmin server is simple when using CSF (ConfigServer Security & Firewall).

To do so, just follow these two steps:

  • Add the IP addresses from which you want to allow SSH access to the whitelist file (csf.allow)

  • Remove the SSH port from the TCP_IN list in the csf.conf configuration file

This effectively blocks all SSH access except from the IPs you’ve explicitly allowed.

Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • DirectAdmin, security, CSF
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

 How to Enable Reseller Access to CSF in DirectAdmin

If you're using CSF ( ConfigServer Security & Firewall) on your DirectAdmin server, you can...

 Understanding Dovecot POP Logs

POP log entries are something like: top=%t/%p, retr=%r/%b, del=%d/%m, size=%s where variables...

 How to Change the Skin from Enhanced to Evolution for All Users in DirectAdmin?

In DirectAdmin, if you want to change the default skin from the old Enhanced to the new Evolution...

 How to Recover MySQL Root Password in DirectAdmin

Root credentials for MySQL are stored in plain text in the file...