CentOS Virtual machine Setup SSH host Login

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.