Problems with the Linux root user not being able to connect via SSH

Source: Internet
Author: User
Tags ssh server

Http://jingyan.baidu.com/article/fd8044fad48fc95031137a85.html

Recently installed in the virtual machine after Ubuntu, through the normal SSH remote connection when the correct root user name and password is always prompted to enter the password, unable to telnet, the trial of the normal user is normal. Behind the Internet to find the next information to solve. To share with you, hope to help you meet the same problem

Tools/Materials
    • Ubuntu
    • Xshell
    • Ssh
Method/Step
    1. 1

      Discover problems

      Through Xshell connection ubuntu, input, connection name, IP, port, already user name password, input completed click Connect, start remote connection, found always prompted to connect not; Tip The SSH server rejected the password, please try again. "In fact, how many times it is useless to try;

    2. 2

      Solve the problem

      1, confirmed that the SSH service has been installed, through the ordinary user connection success;

      2. Verify that SSH configuration has special settings for root, modify the/etc/ssh/sshd_config file

      Permitrootlogin Without-password change Without-password to Yes;

      3, restart the SSH service/etc/init.d/ssh restart;

    3. 3

      Validation results

      Use SSH connection again, this time without any hint, the connection was successful;

Problems with the Linux root user not being able to connect via SSH

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.