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


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) ->, (Host Port) -> 2222, (Guest IP) -> (VM IP eg:, Guest Port -> 22


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

Hope this helps






1 Answer(s)


Hi JayaKrishna,

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