Tutorial on configuring SSH and Xshell to connect to the server in Linux (with pictures)

Tutorial on configuring SSH and Xshell to connect to the server in Linux (with pictures)

>>>>>Ubuntu installation and configuration ssh tutorial

SSH is divided into client openssh-client and server openssh-server. You can use the following command to confirm the computer

Check whether the client and server are installed on the computer. If you just want to remotely log in to another machine, you only need to install the client

(Ubuntu has the client installed by default). If you want the local SSH service, you need to install the server.

First, confirm whether ssh-server has been started. The following shows that it has been started.

~$ dpkg -l | grep ssh

[/code]

~ $ sudo apt install openssh-client

~$ sudo apt install openssh-server

Copy the code as follows:

>>>>>>>>>Xshell starts the server's SSH

Remote login, etc. Use Xshell to install XShell in Windows http://xshellcn.com

ifconfig can view/configure the computer's current network card configuration information.

# View the server IP address and user name corresponding to the network card

$ ifconfig | grep inet

To log in remotely and copy files, we need to enter Xshell and enter commands.

First log in to Xshell, create a new session, and click Connect.

Enter the login server IP, port 22 (default), and select protocol SSH. After confirming and connecting,

Finally, enter your username and password.

If you click Connect or open a session and the following situation appears, it means the information is correct.

Simple use of Xshell software SSH client

Password login is very simple, only one command is needed, the command format is: ssh [-p port] server name@server IP,

The default port is 22. Otherwise, you need to add -p port and enter the information according to the process.

~$ ssh [email protected]

------------------------------------------------------------------------

Username and password required for first login

--------------------------------------------------------------------------------

Check whether the information is connected and enter the server.

Summarize

The above is the tutorial on how to configure SSH and Xshell in Linux to connect to the server. I hope it will be helpful to you!

You may also be interested in:
  • Use Xshell to connect to the Linux virtual machine on VMware (graphic steps)
  • How to connect Xshell5 to Linux in a virtual machine and how to solve the failure
  • How to use xshell to connect to Linux in VMware (2 methods)
  • Use xshell to connect to the Linux server

<<:  Viewing and analyzing MySQL execution status

>>:  Vue implements a complete process record of a single file component

Recommend

VMware Tools installation and configuration tutorial for Ubuntu 18.04

This article records the installation and configu...

MySQL case when group by example

A mysql-like php switch case statement. select xx...

Example code for implementing image adaptive container with CSS

There is often a scenario where the image needs t...

How to build Jenkins+Maven+Git continuous integration environment on CentOS7

This article takes the deployment of Spring boot ...

Solution to the problem that MySQL commands cannot be entered in Chinese

Find the problem Recently, when I connected to th...

Detailed explanation of soft links and hard links in Linux

Table of contents 1. Basic storage of files and d...

Detailed explanation of moment.js time and date processing

Monday to Sunday time format conversion (Y --- ye...

Ideas and codes for implementing waterfall flow layout in uniapp applet

1. Introduction Is it considered rehashing old st...

Analysis of permissions required to run docker

Running Docker requires root privileges. To solve...

Solution to "No input file specified" in nginx+php

Today, the error "No input file specified&qu...

How to install and configure GitLab on Ubuntu 20.04

introduce GitLab CE or Community Edition is an op...

Detailed explanation of how to use Node.js to implement hot reload page

Preface Not long ago, I combined browser-sync+gul...