Get the App
SLTechnology News&Howtos  ›  Network Security  › 

SSH restrictions root cannot log in

Shulou Source: shulou.com Published: 2022-06-01 04:51:04 10月04日 Update

To increase security, SSH restricts remote login permissions for root users. The detailed configuration is as follows:

First edit the SSH configuration file

1, vi / etc/ssh/sshd_config

2. Find about 42 lines of permitRootlogin yes, and change yes to no, which means denying root login.

3. Finally, remember to restart the ssh service, service sshd restart

The reconnection takes effect OK.

Tags: Login configuration restrictions security security that is files permissions users services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Linux Shulou Technology Huawei Shulou Information