Home > Operation and Maintenance > Linux Operation and Maintenance > Unable to use root user for remote login in linux

Unable to use root user for remote login in linux

王林
Release: 2019-12-03 11:22:45
Original
3564 people have browsed it

Unable to use root user for remote login in linux

Install ssh service:

sudo apt-get install ssh
Copy after login

By default, only ordinary users can connect remotely. If you want to enable the root user:

1. Modify the configuration File

Recommended online video tutorial: linux video tutorial

Edit the sudo vim /etc/ssh/sshd_config file and change PermitRootLogin# Change the value of ## to yes

Unable to use root user for remote login in linux

2. Restart the ssh service

/etc/init.d/ssh restart
Copy after login
Test:

Unable to use root user for remote login in linux

Recommended related articles and tutorials:

linux tutorial

The above is the detailed content of Unable to use root user for remote login in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template