View Centos7 's IP
We enter IP query named IP addr can also enter ifconfig view IP, but this command will appear 3 entries, CentOS IP address is ens33 entry inet value.
If you find that ENS33 does not have the inet attribute, then you cannot connect to the virtual machine by IP address.
Next, look at the configuration of the ENS33 network card: Vi/etc/sysconfig/network-scripts/ifcfg-ens33 Note VI followed by a space
VI is the Linux built-in Text Editor command to open the file meaning
From the configuration checklist, you can see that CentOS 7 does not start the network card (ONBOOT=NO) by default.
Change this item to Yes (Onboot=yes),
Then press ESC to exit the re-entry command: WQ press ENTER again (Note: Wq is saved and then exited after the meaning will be specifically said VI)
Then restart the Network service: sudo service network restart
Then we'll enter the IP addr command
Here the Inet property shows the IP in the virtual machine
"Protocol version mismatch. Required protocol version is 1.3-1.99. Received version was 2.0. "
SSH SECURECRT Error, Solution:
using for for is5.5.
First ping in the virtual machine to see the internet does not, if not connected to the Internet, SSH can not access:)
VBox created by the network selected is a NAT connection (network address translation), so we just need to change the port, we can map our own host port to 22 port (SSH default 22 port), so that we can access the localhost can be connected to the virtual machine.
If your 2222 port is not occupied, set it up.
Juteman
Links: https://www.jianshu.com/p/eca72e767d71
Source: Pinterest
The copyright of the book is owned by the author, and any form of reprint should be contacted by the author for authorization and attribution.
CentOS Virtual machine Setup SSH host Login