Ubuntu Server 14.04 under root cannot ssh login

Source: Internet
Author: User

Today installed Ubuntu Server 14.04 in the terminal configuration root password, use SECURECRT and putty unexpectedly can not SSH login, SecureCRT always prompt password is wrong, but can certainly enter the password 100% correct, With Putty has been reported to access Denied, so you can be sure that the system restricts the root does not allow remote SSH login.

But normal user remote ssh login after su root normal! Why

It turns out there's a limit in sshd_config.

#vim/etc/ssh/sshd_config

1 2345 # authentication: #PermitRootLogin  without-password     #找到这里, annotate it Code class= "Bash plain"? permitrootlogin  yes                     #改为yes     Then restart <a href= "http://so.21ops.com/cse/search?s=9181936462520079739&entry=1&q=ssh" class= " Bdcs-inlinelink "target=" _blank ">SSH</A> strictmodes  yes ???

#service ssh restart??

#Tips: note here that/etc/init.d/ssh restart is unsuccessful in this way.

Ubuntu Server 14.04 under root cannot ssh login

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.