Problem connecting to VM using SSH client hosted in Oracle virtual box



0

Follow the below steps to solve the issue connecting to vm hosted using Oracle virtual box 

1. Go to VM -> Machine -> Settings -> Network -> Adapter -> Advanced -> Port forwarding

Click on Plus and add following entries in each column respectively

 (name) -> <Some name, eg: Custom>, (Protocol) -> TCP, (Host IP) -> 127.0.0.1, (Host Port) -> 2222, (Guest IP) -> (VM IP eg: 10.0.2.15), Guest Port -> 22

 

2. Now go to SSH client like putty and connect to the Host IP

   127.0.0.1 and port 2222

Hope this helps

Thanks

Jaya

 

 

 


1 Answer(s)


0

Hi JayaKrishna,

Please switch the network adapter "NAT' to "Bridge Adapter" in Virtual machine settings.
Hope this helps.