Host configuration tutorial for xshell remote connection under Centos7
I. configuration of host environment
1. Activate the network card
(1) Open the file ifcfg-ens33
# vi / etc/sysconfig/network-scripts/ifcfg-ens33
(note-the configuration file name of ens33 Nic may be different from machine to machine, which can be completed by using TAB key)
(2) change ONBOOT=no to = yes
(ONBOOT indicates whether the network card is activated when the system is started. Only the network card in the active state can connect to the network and communicate with the network.)
2. Configure host network address
Change BOOTPROTO=dhcp (dynamic URL) to static (static URL)
Add the following information:
IPADDR=192.168.1.5 (host ip address, which can be in the same physical network segment as gateway and remote client)
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=114.114.114.114
When you have finished editing, save.
3. Restart the network service to take effect
# service network restart
II. Remote client configuration
1. Open xshell and create a new session
2. Enter the hostname and connect