Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux remotely connects to other linux

Shulou Source: shulou.com Published: 2022-06-03 06:30:57 10月03日 Update

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.

Tags: Machine service success content command user release prompt login input compact parameter address base password file step look port focus Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MariaDB Shulou Information Huawei Microsoft