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

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

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!

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