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

Use Rem layout to achieve adaptive

I have written an article about mobile adaptation...

Detailed graphic and text instructions for installing MySQL 5.7.20 on Mac OS

Installing MySQL 5.7 from TAR.GZ on Mac OS X Comp...

Detailed explanation of CSS animation attribute keyframes

How long has it been since I updated my column? H...

MySQL limit performance analysis and optimization

1. Conclusion Syntax: limit offset, rows Conclusi...

How to set up remote access to a server by specifying an IP address in Windows

We have many servers that are often interfered wi...

Implementation of installing Docker in win10 environment

1. Enter the Docker official website First, go to...

WeChat applet uses the video player video component

This article example shares the specific code of ...

The hottest trends in web design UI in 2013 The most popular UI designs

Time flies, and in just six days, 2013 will becom...

Details on using regular expressions in MySQL

Table of contents 1. Introduction 2. Prepare a pr...

Learn the black technology of union all usage in MySQL 5.7 in 5 minutes

Performance of union all in MySQL 5.6 Part 1:MySQ...

JavaScript singleton mode to implement custom pop-up box

This article shares the specific code of JavaScri...

Learn how to use the supervisor watchdog in 3 minutes

Software and hardware environment centos7.6.1810 ...

Vue2.0 implements adaptive resolution

This article shares the specific code of Vue2.0 t...