Virtual machine main functions ping each other, but cannot connect remotely

Source: Internet
Author: User
Tags ssh port

First, you will find the virtual machine Settings (edit VM settings)

These two have to be hooked up;

Bridge mode OK, found that the virtual machine can ping the host, the host agreed to also ping the virtual machine, stating: Network no problem;

Then run the following command on the virtual machine

    1. Service iptables stop//firewall off
    2. Service sshd start//start sshd Services

      If the above two are running, or not, is the SSH port number is not set the correct reason!!!!!!! (That's why I've been looking for 1 hours to find out that the problem is here.)
      , first, we view the SSH port number on the virtual machine

    3. View SSH Run command: cd/etc/ssh/

Then run: Cat Sshd_config

Find port port number defaults to 10022, some 22

So, when we use SECURECRT remote connection to the virtual machine, the port number can only fill 10022 (must be consistent with this)

Note: If you modify the port number, be sure to run the command: service sshd restart

Over ...

Virtual machine main functions ping each other, but cannot connect remotely

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.