Use xshell to connect to the virtual machine corresponding to the IP address

Use xshell to connect to the virtual machine corresponding to the IP address

(If you use Linux's own ftp file transfer protocol to transfer files, the file will lose data. If you use the xshell tool xftp to transfer files, it will not happen. Therefore, it is also important to understand the virtual machine with the corresponding IP address of the xshell connection.)


1. Modify the network card configuration file

vi  /etc/sysconfig/network-scripts/ifcfg-ens33  

To obtain the IP address dynamically, set these two items as shown in the figure:

BOOTPROTO=dhcp

ONBOOT=yes

Insert image description here

Then restart the network servicesystemctl restart network

You can also set a static IP address

Add a few lines at the end of the ifcfg-ens33 file, IP address, subnet mask, gateway, dns server

Just set the configuration you need to modify, the following is an example

IPADDR=192.168.0.111

NETMASK=255.255.255.0

GATEWAY=192.168.0.1

DNS1=192.168.0.1

DNS2=8.8.8.8

2. Check the virtual ip address: ip addr (you can do this step directly, get the ip address and then connect to complete)

Insert image description here


3. Open xshell to connect

Insert image description here

Then enter your username and password

Insert image description here

Guess you like

Origin blog.csdn.net/m0_71106830/article/details/130945519