Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report