Enabling and configuring SSH securely

Modified on Thu, 21 May, 2020 at 4:09 PM

Install ssh using apt install ssh if it is not already installed


Enable ssh use to a NON ROOT user by editinh /etc/ssh/sshd_config;

        Make sure PermitRootLogin is set to no.

        Add the line AllowUsers username in the Authentication section.

   

Restart sshd for the change to take effect. ("systemctl restart sshd" in debian)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article