Can't connect to CentOS VM IP from w10 host machine via SSH

Hello Guys,

I installed CentOS VM in Virtualbox with NAT network. The SSH connection is possible via loopback IP but not possible using the VM IP as shown in the course demo.

Please support me to enable SSH connection to virtual machine IP.

Thanks
Akhil

Please make sure that ssh service is up and running using the command below:
systemctl status sshd

sshd status
image

SSH connection possible to loopback IP but not to 10.0.2.15. Got below error.
image

Port forwarding is active.