SSH restrictions root cannot log in
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.