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

Linux remotely connects to other linux

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What the editor shares with you today is the detailed introduction of linux remote connection other linux. I believe many people do not know much about it. In order to let you know more about linux remote connection to other linux, I summarized the following content for you.

How linux connects to other linux remotely

1. Install sshd services on other Linux machines

If you are using a series linux distribution such as redhat,fedora,centos, type the following command:

Sudo yum install sshd or sudo yum install openssh-server

If you are using a linux distribution of a series such as debian,ubuntu,linux mint, type the following command:

Sudo apt-get install sshd or sudo apt-get install openssh-server

Then follow the prompts and install it.

2. Enable sshd service

Service sshd start

In this way, the preparation work is completed, and here is how to connect.

3. Ssh connects to other Linux machines

Ssh root@ip-p 22

Ip is the ip address of other Linux,-p is the port specified by other Linuxsshd services, default is 22

After you enter, you will be prompted whether to continue to connect, enter yes, enter, and then enter the password of the root user on other Linux machines to log in successfully.

Note: root users cannot log in successfully. The following settings need to be made on other Linux machines:

Edit ssh profile

Sudo vi / etc/ssh/sshd_config

Find the adjustment PermitRootLogin and set the parameter value to yes

Then restart the service service sshd restart.

Based on the introduction of linux remote connection to other linux, this paper focuses on its concrete steps. The content of this article is compact. I hope you can get something.

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