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
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)
3. Open xshell to connect
Then enter your username and password