Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.

****************Got the opportunity to pen a Book on Database Cloud Services.......More details to follow.***************

Title : Database Cloud Revealed
Publisher : Apress
Release Date : Jan-2020

**********************************************************************************


My Cloud Certifications:

AWS Certified Solutions Architect Associate

Azure Certified Architect

Azure Certified Administrator

Oracle Cloud Infrastructure 2018 Certified Architect Associate.

Oracle Cloud Infrastructure Classic 2018 Certified Architect Associate.

Oracle Database Cloud Administrator Certified Professional.

Oracle Database Cloud Service Operations Certified Associate.

Search This Blog

Sunday, June 2, 2019

ssh: connect to host XX.XX.XX.XX port 22: Connection refused while connecting to Guest OS on Virtual Box

Issue:
While connecting from Windows - 10 to Guest OS - Oracle Linux -7.1  on Oracle Virtual Box - 5.2, you may get the below error.
ssh: connect to host XX.XX.XX.XX port 22: Connection refused


shaikprod@shaikprod ~
$ ping 192.168.56.1

Pinging 192.168.56.1 with 32 bytes of data:
Reply from 192.168.56.1: bytes=32 time<1ms TTL=128
Reply from 192.168.56.1: bytes=32 time<1ms TTL=128
Reply from 192.168.56.1: bytes=32 time<1ms TTL=128
Reply from 192.168.56.1: bytes=32 time<1ms TTL=128

Ping statistics for 192.168.56.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

shaikprod@shaikprod ~
$ ssh 192.168.56.1
ssh: connect to host 192.168.56.1 port 22: Connection refused

shaikprod@shaikprod ~
$ ssh 192.168.56.1
ssh: connect to host 192.168.56.1 port 22: Connection refused



Fix:
Enable port forwarding on the NAT -Network from the Oracle Virtual Box



No comments: