Get the App
SLTechnology News&Howtos  ›  Servers  › 

Tutorial on how to quickly install and deploy remote connection software SSH under Linux

Shulou Source: shulou.com Published: 2022-06-01 10:44:31 09月11日 Update

This article mainly explains the "Linux quick installation and deployment of remote connection software SSH tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "Linux quick installation and deployment of remote connection software SSH tutorial" it!

SSH is divided into client side and server side.

The server is a daemon, usually a sshd process, that runs in the background and responds to requests from the client. Provides processing of remote requests, which generally includes public key authentication, key exchange, symmetric key encryption, and insecure connections.

The client is usually a ssh process, as well as other processes such as scp, slogin, sftp and so on.

Working mechanism:

1. The client sends a connection request to the remote server

two。 The server checks the requested packet and IP address, and then the key is sent to the SSH client.

3. The client sends the key back to the server and a connection is established.

Let's start with the text:

I. client

1. Install the client (client is not required)

The code is as follows:

# apt-get install ssh

If the installation fails, use the following command to install

The code is as follows:

# apt-get install openssh-client

2. SSH login (client)

The code is as follows:

$ssh 192.168.159.128

$ssh-l weiyg 192.168.159.128

$ssh weiyg@192.168.159.128

II. Server side

1. Install the server

The code is as follows:

# apt-get install openssh-server

two。 Start the server

The code is as follows:

# / etc/init.d/ssh stop # stop

# / etc/init.d/ssh start # launch

# / etc/init.d/ssh restart # restart

3. SSH configuration

Modify the configuration file / etc/ssh/sshd_config and restart the service

The code is as follows:

# / etc/init.d/ssh restart

The default port of ssh is 22. Modify it if necessary.

The code is as follows:

Port 20

The default configuration of ssh allows root to log in, and you can modify the configuration table to prevent it from logging in.

The code is as follows:

PermitRootLogin no

Thank you for your reading, the above is the content of the "quick installation and deployment of remote connection software SSH under Linux". After the study of this article, I believe you have a deeper understanding of the problem of rapid installation and deployment of remote connection software SSH under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Client client service code key tutorial software process configuration learning login content server security symmetry background command address that is ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS vpn Huawei MySQL