Configure the CenOS network and link with Xshell.

First type cd /etc/sysconfig/netuork-scripts/ and press Enter

Type ls  and hit enter 

Type vi ifcfg-eth0 and press   enter

Press the esc key, then press the U and I keys successively to move the cursor to no with the keyboard , then delete the no and change it to yes

Press the esc key, then hold down the shift key , press the colon key , type wq , press enter to save

Type service network restart and press   Enter to restart the network service

Enter  ifconfig   and press Enter to query the IP address, the red box is the IP address

Type   service iptables stop   and press enter to close the firewall so that Xshell can connect


Connect CenOS with Xshell

Open Xshell and click New

In the red box marked Enter the host IP address, click OK

Select the session created and click the link

In the pop-up window, select Accept and save

Enter the username (usually root)

enter password

The login is successful, you can use the CenOS host in Xshell

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325367221&siteId=291194637