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

王林
王林Original
2019-12-03 11:22:453557browse

Unable to use root user for remote login in linux

Install ssh service:

sudo apt-get install ssh

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

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!

Statement:
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