How to remove the prohibition of root remote login by Ubuntu
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.