Enable Ubuntu root Telnet

Source: Internet
Author: User

I met this problem very early, but today I thought of solving it. In other words, when Ubuntu is installed, remote SSH login is forbidden. Every time you have to use a normal user ssh telnet, and then su switch to root so, for obsessive-compulsive disorder I really is very difficult to tolerate, so find a bit of information, modify the configuration file is ok.

Briefly say my environment: Ubuntu Physical Machine (has installed the SSH tool), a Windows physical machine (installed with Xshell Remote Tools), about the installation problem ( apt-get install -y openssh-server ) do not say, directly solve the problem, the steps are as follows:

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

  3. Because root set the password, so also modify the following content, if no, then do not have to modify:
  4. To restart the SSH service:

Off Topic

Ubuntu default firewall off command: UFW disable

About this root can not telnet, but also cause another problem, if your root can not log in remotely, then you use WINSCP for remote file transfer, the use of ordinary users is not possible, will be subject to permissions, and use root to connect, there will be no problem.

Reference: Baidu Encyclopedia

Enable Ubuntu root Telnet

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.