Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that linux can't log in remotely with root users

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Overview

The Linux operating system is a multi-user operating system that allows multiple users to log in to the system and use resources at the same time. The system will distinguish each user's files, processes, tasks and working environment according to the account, so that each user's work will not be disturbed.

Use Root users

In the actual production operation, we basically use the Super Admin account to operate the Linux system, that is, the Root user. The Linux system closes the Root account by default. We need to set an initial password for the Root user to facilitate our use.

Install the ssh service:

Sudo apt-get install ssh

By default, only ordinary users can connect remotely, if you want to enable root users:

1. Modify the configuration file

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

2. Restart the ssh service

/ etc/init.d/ssh restart

Test:

These are the details that you cannot use root users to log in remotely in linux. For more information, please follow other related articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report