Enable Ubuntu root remote logon and Ubuntu root

Source: Internet
Author: User

Enable Ubuntu root remote logon and Ubuntu root

I have encountered this problem for a long time, but today I want to solve it. That is to say, during Ubuntu installation, remote SSH Login is forbidden. Every time you have to use an ordinary user SSH to remotely log on, and then su switches to root, it is really difficult for me to tolerate obsessive-compulsive disorder, so I found the information, after modifying the configuration file, it will be OK.

To put it simply, my environment: One Ubuntu physical server (an ssh tool has been installed), One Windows physical server (an XShell remote tool installed ( Apt-get install-y openssh-serverTo solve the problem directly, follow these steps:

  1. Root Login to your Linux
  2. Vim/etc/ssh/sshd_config edit the configuration file as follows:

    Run the ufw disable command to disable the firewall of ubuntu by default.

    This root user cannot log on remotely, which may cause another problem. If your root user cannot log on remotely, when you use WinSCP for remote file transfer, normal users cannot be used, and permissions may occur. If you use root for connection, no problems will occur.

    References: Baidu encyclopedia

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.