How to use xshell to connect to Linux in VMware (2 methods)

How to use xshell to connect to Linux in VMware (2 methods)

【Foreword】

Recently I want to stress test ITOO's examination system, so I want to install Linux on my computer, and then install jmeter to perform stress testing.

But why do we need to connect to xshell? Because on the virtual machine, you always switch the mouse with the host, and you can't paste and copy, so it is more convenient to connect with xshell.

【hint】

CentOS7 recommends using the first method of setting a static IP address.

【step】

1. Install VMware

Just click Next

2. Install Linux

Download CentOS and install it in VMware. There are many tutorials on the Internet, so I won’t go into details here.

3. Configuration

One way is to set a dynamic IP (recommended):

1. Set the Linux network configuration type

2. Log in to the Linux system and enter: ip addr

3. Configure the network card and bind a static IP

Open the configuration file eno16777736

Type: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736

After editing, save and exit (!wq)

4. Restart the network card service

service network restart

5. Configure the network IP of the virtual machine

Test it out

Ping baidu.com If it works, it means it is successful.

The second method: set a static IP (not recommended)

It is troublesome to use this method in CentOS7. The following steps may result in different ping results. If you must use this method, please refer to the following blog:

https://www.jb51.net/article/190173.htm

To connect to xshell, you need to configure the IP and put the IP in Linux and the IP on the virtual machine in the same network segment.

1). Set the network configuration type of the Linux system

2). Check the network segment in the virtual machine

3). Set up a static IP in Linux system

1. Log in to the Linux system

2. Input: ip addr

3. Configure the network card and bind a static IP

Open the configuration file eno16777736

Type: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736

After editing, save and exit

4. Restart the network card service

service network restart

You can also check whether the IP address is consistent with the one entered above: ip addr

4). Configure the IP address of the virtual machine

The default gateway should be consistent with the one configured in the virtual machine.

5) Test it out

Ping baidu.com If it works, it means it is successful.

If not, add DNS1=114.114.114.114 to the above network card configuration file, then restart the network card service: service network restart, and test again

4. Download xshell to connect to Linux

Then enter your username and password (these are set when you installed Linux)

【Summarize】

This completes the connection, and you can use xshell to connect to the Linux system.

During this configuration process, I actually went through a lot of ups and downs, from not understanding at first to gradually understanding. I will continue to share the installation process of jmeter in the future, so stay tuned.

This concludes this article about the steps (2 methods) to connect Linux in VMware using xshell. For more information about connecting Linux in VMware using xshell, please search previous articles on 123WORDPRESS.COM or continue browsing the related articles below. I hope you will support 123WORDPRESS.COM in the future!

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
  • Tutorial on configuring SSH and Xshell to connect to the server in Linux (with pictures)
  • Use xshell to connect to the Linux server

<<:  Vue implements scrollable pop-up window effect

>>:  Detailed tutorial on installing and configuring MySQL 5.7.20 under Centos7

Recommend

vue+el-upload realizes dynamic upload of multiple files

vue+el-upload multiple files dynamic upload, for ...

How to completely uninstall mysql under CentOS

This article records the complete uninstallation ...

Reflection and Proxy in Front-end JavaScript

Table of contents 1. What is reflection? 2. Refle...

HTML Tutorial: DOCTYPE Abbreviation

When writing HTML code, the first line should be ...

Detailed use of Echarts in vue2 vue3

Table of contents 1. Installation 2. Use Echarts ...

How to publish static resources in nginx

step Place the prepared static resource files in ...

Detailed explanation of MySQL database transaction isolation levels

Database transaction isolation level There are 4 ...

CSS3 realizes particle animation effect when matching kings

When coding, you will find that many things have ...

MySQL join buffer principle

Table of contents 1. MySQL join buffer 2. JoinBuf...

How to change the mysql password on the Xampp server (with pictures)

Today, I found out while working on PHP that if w...

Advantages and disadvantages of Table layout and why it is not recommended

Disadvantages of Tables 1. Table takes up more byt...

The difference between delete, truncate, and drop and how to choose

Preface Last week, a colleague asked me: "Br...

Practical experience of implementing nginx to forward requests based on URL

Preface Because this is a distributed file system...