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

How to remove the prohibition of root remote login by Ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces Ubuntu how to lift the prohibition of root remote login related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this Ubuntu how to lift the prohibition of root remote login article will have a harvest, let's take a look at it.

Edit SSH service profile

Edit the configuration file sshd_config of the SSH service, and modify the port and root user rights of SSH.

The command used: (press I to enter edit mode, press ESC to exit edit mode,: wq save exit).

Root@Jaking:~# vim / etc/ssh/sshd_config1. Open the remote port to find the line where # port 22 is located, copy the line and modify it. Change # port 22 to port 22 (remove the previous #). The content of this line is to set the port number of the SSHD service 2. 0. Allow root to log in remotely to find the line # PermitRootLogin prohibit-password, copy that line and modify it. Change # PermitRootLogin prohibit-password to PermitRootLogin yes3. Restart the ssh service service sshd restart or / etc/init.d/ssh restart. This is the end of the article on "how Ubuntu removes the prohibition of root remote login". Thank you for reading! I believe that everyone has a certain understanding of "how to lift the ban on root remote login by Ubuntu". If you still want to learn more knowledge, you are welcome to follow the industry information channel.

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

Development

Wechat

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

12
Report