Use SecureCRT connection steps:
1. First, open the virtual machine, click Edit the upper left corner, then click the Virtual Network Editor (virtual network has been edited ignore this step, the second step directly)
Click VMnet8 network, click Change settings, this step requires administrator privileges
Click NAT mode, and then hook the following two options are checked up, subnet ip set to 192.168.0.0, subnet ip last field must be filled to 0, to fill Subnet Mask: 255.255.255.0
Click NAT settings, gateway set to 192.168.0.1, click OK, and then click Apply
Then open the network adapter, select VMnet8, click Properties, and then double-click Protocol 4
ip address: 192.168.0 128 (note that ip address range), subnet mask:. 255.255.255.0, the default gateway: 192.168.0.1, DNS: 192.168.0.1, and click OK filled out
Such virtual network configuration to complete it (already configured before, ignore this step, the second step directly)!
2. Open the linux system in a virtual machine, enter the command service iptables stop turn off the firewall
3. Enter chkconfig iptables off command to permanently turn off the firewall, the command does not suggest that there is no error that is representative of the firewall has been permanently closed
4. Enter vi / etc / sysconfig / network- scripts / ifcfg-eth0 enter the network configuration page, clicking on the keyboard to insert into the editing mode, the following:
first two lines of a UUID HWADDR #Comment
modify:
the ONBOOT = " yes "
BOOTPROTO =" none "
NM_CONTROLLED =" yes "
Finally, the last line add:
IPADDR = 192.168.0.125 (set static ip, do not write)
NETMASK = 255.255.255.0 (same as the virtual network settings)
GATEWAY = 192.168.0.1 (and the same virtual network settings)
DNSI = 192.168.0.1 (same as the virtual network setting)
after entering the press esc, and then enter: wq to save (Note: fill gATEWAY (gateway) and DNSI to be consistent, gATEWAY (gateway) and to the DNSI virtual network editor VMnet8 in network setup)
Then enter service network restart command to restart the network card
5. Enter the ifconfig command to view the current linux system ip
6. Open SecureCRT, click File, then click on the connection (connection process needs to maintain linux is switched on, otherwise the connection fails)
Right-click Sessions, and then click New Session
SecureCRT protocol does not require modification, click on Next
Fill in the host name to view the Linux IP addresses, ports and firewalls are not required to modify the user name not fill, fill finished, click Next
SecureFX protocol does not require modification, just click Next
Free to fill in the session name, description can be neglected to fill in, fill out complete, click Finish
Finally, select the Create good conversation window, click the connection, enter your user name and password to connect successfully
————————————————
Disclaimer: This article, "When the world-heng," as CSDN bloggers original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_44218204/article/details/86097915