Saikumar A
Saikumar A

Reputation: 223

Virtual box connectivity from a remote laptop

I have a server(A) on which oracle virtual box is installed which is configured with 3 boxes(B,C,D) .Please check below image.

http://i63.tinypic.com/10dbjhh.jpg

I can connect to server A from my laptop ,but i'm unable to connect B,C & D servers which are configured on VBOX of server A .

Please let me a know possible solution for this.

Upvotes: 0

Views: 82

Answers (3)

peterbonar
peterbonar

Reputation: 609

Flush iptables on B C D to allow ssh

iptables -F

Then restart iptables

Upvotes: 2

peterbonar
peterbonar

Reputation: 609

Try this method which may work:

Run the following command on B: curl icanhazip.com

This will give you your public IP as 10.x.x.x is a private IP address. Then try and directly SSH to the public IP. If this doesn't work, it's something to do with iptables.

Upvotes: 1

peterbonar
peterbonar

Reputation: 609

SSH to server A then from inside A, use the following template:

ssh <username>@<IP ADDRESS OF B>

For example

ssh [email protected]

Upvotes: 2

Related Questions