Xshell7 installation and configuration

1. Download XShell

First go to the XShell official website to download, address: https://www.netsarang.com/products/xsh_overview.html

After entering, slide the mouse down to the end, add your name and email address, fill in the real email address, and choose to download both

A download address will be sent in a while, click on the address to download.

Click on the address given in the email to download the Xshell address,

After downloading, click Install, which is basically the next step, so I won't explain it anymore.

check ip address

View the ip address of CenOS on the virtual machine

Use ifcongfig to view ip

Two, XShell settings

After installation, such an interface will appear, select the file in the upper left corner, and create a new session

connection settings

The host name is generally the same as the ip address, which is easy to distinguish.

Protocol: Select SSH

Host ip: Select the ip address in the virtual machine above

Port number: 22

Terminal settings:

Appearance settings:

Set according to your preference,

Logging:

Choose to save the current log path, just keep it %n_%d_%t.log. See the picture for operation.

file transfer settings

Select copy and paste

3. Remote system settings

Using the CenOS system,

Download the new CentOS-Base.repo to /etc/yum.repos.d/

To detect whether the CenOS system has a network, you can use ping www.baidu.com

Ctrl +c final short

If you use the desktop version, you can add ping -n www.baidu.com

Terminate with ctrl + c

Install the download tool wget

If you use the root user, you can use the following command

yum install wget -y

If you are an ordinary user, you need to add sudo for authorization

sudo yum install wget -y

Change the yum source and download the installation source of the software.
PS: Install both (1) and (2). Alibaba Cloud will do.

Alibaba Cloud: repo source link

(1) Change the yum source, download the installation source of the software, and provide it officially.
Method 1 (with hints, officially provided by CentOS, this is the source Base): curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo


Method 2 (no prompt, one more -s): curl -s -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

(2) Change the yum source and download the installation source of the software (this is also installed, provided by a third party, and the download software is relatively complete; remove the -s to see the installation prompt, you can skip it, this is epel) curl -s -o
/ etc/yum.repos.d/epel.repo http://mirrors.aliyun..com/repo/epel-7.repo

 

XShell7 connects to the virtual machine

The connection always fails. I found a lot of methods on the Internet. If it doesn’t work, I think that as long as the two terminals can ping each other, it will be fine. If the firewall in the virtual machine is closed and ssh is turned on, it can be connected.

The next chapter introduces the connection of XShell7 to the virtual machine, and the connection is successful

Address: https://mp-new.csdn.net/mp_blog/creation/editor/117774875

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_40294256/article/details/117766815