Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the password is incorrect when logging in to ubuntu?

Shulou Source: shulou.com Published: 2022-06-01 14:30:02 09月27日 Update

This article mainly introduces "what to do if the password is incorrect when logging in ubuntu". In the daily operation, I believe that many people have doubts about how to do incorrect passwords when logging in to ubuntu. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for everyone to answer the doubts of "incorrect passwords when logging in ubuntu". Next, please follow the editor to study!

Solution:

1. Log in with the root account at the virtual machine terminal and edit the / etc/ssh/sshd_config file

Vi / etc/ssh/sshd_config

2. Find the Authentication configuration section, change PermitRootLogin without-password to PermitRootLogin yes, and save it.

# Authentication:

LoginGraceTime 120

# PermitRootLogin without-password

PermitRootLogin yes

StrictModes yes

Note: sshd_config is the configuration file of ssh, in which an option PermitRootLogin is used to configure whether to allow root users to log in, the default without-password means that full login authentication with password is not allowed, and yes allows root login.

3. Restart the ssh service. You can connect to the server normally through SercureCRT.

Service ssh restart

At this point, the study of "what to do if the password is incorrect when logging in to ubuntu" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Password how to do prompt login study login configuration file more help service utility next method you can pass article method server theory user Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Technology Apple Redmi Shulou Tech Info