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.js implements image switching function

This article shares the specific code of Vue.js t...

How to recover data after accidentally deleting ibdata files in mysql5.7.33

Table of contents 1. Scenario description: 2. Cas...

When to use table and when to use CSS (experience sharing)

The main text page of TW used to have a width of 8...

How to use Typescript to encapsulate local storage

Table of contents Preface Local storage usage sce...

Invalid solution when defining multiple class attributes in HTML

In the process of writing HTML, we often define mu...

Example code for hiding element scrollbars using CSS

How can I hide the scrollbars while still being a...

CSS Reset style reset implementation example

Introduction: All browsers come with default styl...

Introduction to network drivers for Linux devices

Wired network: Ethernet Wireless network: 4G, wif...

Detailed explanation of the role of key in React

Table of contents Question: When the button is cl...

How to install kibana tokenizer inside docker container

step: 1. Create a new docker-compose.yml file in ...

SQL to implement time series dislocation restoration case

Table of contents 1. Requirements description 2. ...

Vuex modularization and namespaced example demonstration

1. Purpose: Make the code easier to maintain and ...

Detailed explanation of React event binding

1. What is In react applications, event names are...