The root user cannot remotely log in to the server with SecureCRT

Using SecureCRT to remotely log in to the server, users with root privileges cannot log in, and the following error occurs:

Password verification failed

Please check if the username and password are correct

What is certain is that the password is correct, how to change it to allow root to log in directly? (It is recommended not to change, because the root user has the highest authority, which is more dangerous)

 

Solution:
  root is generally forbidden to log in. It has the highest authority and is more dangerous. Usually, you log in to the ordinary user first and then switch to root or sudo to work. If you really need to change it to let the root user log in directly, you can Use the following method:

 vim /etc/ssh/sshd_config # Edit this document

to find the PermitRootLogin parameter, and change to PermitRootLogin yes to save and exit. (My system turned out to be this PermitRootLogin prohibit-password)

Then restart the ssh service.

The command to restart the ssh service: sudo service ssh restart

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326496903&siteId=291194637