nat+ port forwarding allows host SECURECRT to access VBox Linux virtual machines

Source: Internet
Author: User

Environment : VBox or Vitrualbox to connect the virtual machine, because the company intranet can not allocate IP (do not know if this is the reason), the virtual machine with the bridge can not reach the IP, virtual machine and host access to each other, so with Nat.

Sorry : Nat is able to connect to the network, but also can access the host, and the host cannot access the virtual machine. However, also want to use SECURECRT in the host access to Linux (after all, Linux command line inconvenient). By default, Nat given IP is 10.0.2.15 and cannot be modified.

Search all over the mountains, practice the following solutions :

(1). cmd into the VBox installation directory, execute the following command: (or set 1)

D:/vbox>vboxmanage MODIFYVM "H1"--natpf1 "guestssh,tcp,,2222,,22"

"H1″ is my virtual machine name

The following do not change, the main idea is to map the port 2222 of the machine to the virtual machine 22, access to the machine 2222, connected to the virtual machine 22 port; "In Figure 1"

Then set the connection host in SecureCRT to 127.0.0.1 instead of the virtual machine IP;

Port is 2222 instead of

You can "Figure 2".

nat+ port forwarding allows host SECURECRT to access VBox Linux virtual machines

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.