Modify the root password of Ubuntu and allow only certificate login settings
Source: Internet
Author: User
Ubuntu: change the root password and allow only certificate login settings 1. modify the root password www.2cto. comJava code 1. sudopasswd2.Password: 3. EnternewUNIXpassword: 4. RetypenewUNIXpassword: 5. pa...
Ubuntu allows you to change the root password and only allow the certificate to log in. 1. modify the root password www.2cto.com Java code 1. sudo passwd 2. password: 3. enter new UNIX password: 4. retype new UNIX password: 5. passed: finished update successfully. 2. modification only allows the certificate to log on to www.2cto.com Java code 1. modify/etc/ssh/sshd. conf 2. set PermitRootLogin without-password # In this way, the root user cannot log on to the computer without a key. 3. setting PermitRootLogin to no will disable root user login.
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