Quantcast
Channel: Sameer Shaik. B.E,M.S,M.B.A,P.M.P,C.S.M
Viewing all articles
Browse latest Browse all 191

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

$
0
0
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




Viewing all articles
Browse latest Browse all 191

Trending Articles