Ubuntu 14.04 enables SSH Login for the root account, ubuntu14.04

Source: Internet
Author: User

Ubuntu 14.04 enables SSH Login for the root account, ubuntu14.04

1. Modify the root password

Sudo passwd root

2. log on to another account and use sudo nano to modify/etc/ssh/sshd_config:

Xxx @ ubuntu14 :~ $ Su-rootPassword: root @ ubuntu14 :~ # Vi/etc/ssh/sshd_config

3. Comment out # PermitRootLogin without-password, and add PermitRootLogin yes to remove # Before PasswordAuthentication yes #

# Authentication: LoginGraceTime 120 # PermitRootLogin without-passwordPermitRootLogin yesStrictModes yes
PasswordAuthentication yes

5. Restart the ssh service.

Root @ ubuntu14 :~ # Sudo service ssh restartssh stop/waitingssh start/running, process 1499root @ ubuntu14 :~ #

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.