A devbox has Windows 8.1 as the host OS running VirtualBox and a virtual machine with CentOS 7 for development. The devbox is connected to a CentOS 7 development server through an Ethernet cable. The development server is not connected to the Internet, or to any other computer.
The devbox Windows 8.1 host OS is able to SSH to the development server using PuTTY after making the config changes described in this other post. However, the CentOS 7 virtual machine inside the devbox is not able to make SSH connections to the development server.
In the devbox virtual machine, when I type
And then type:
The terminal prints out
When I next type:
The terminal shows:
DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback
However, I hesitate to make the other changes shown in the other posting because the devbox virtual machine needs to retain the ability to
ssh over the Internet also.
What changes need to be made in the devbox to allow the CentOS 7 VM to SSH into the development server?
Note that the virtual machine on the devbox is able to SSH to remote servers over the Internet. So the current problem is just getting it to know how to connect to the local Ethernet development server when a user types
ssh [email protected].