SSH connection from Windows to CentOS VM

Hi, everyone!

I’ve tried to conect via ssh from windows to centOS VM but I get this error.

Cpould you help me here please?

A couple of things to check here.

  1. Did you create the networking in VirtualBox as “Bridged” as described in course videos? ip addr is showing your adapter as connected to a /22 network which is unusual for a home broadband network.
    image

  2. It appears you have managed to enable the network connection.

If your network is correctly bridged, then the VM should receive an IP address on the same network as the Windows machine and SSH should work directly.

Hi Alistair, thak you for the time.

I did connect the networking as described in the video, I used port 22 because MobaXterm use port 22 as default. At firts I could’t connect to the internet, when I was searching a solution I saw that there was no ifcfg-enp03 file in my network-scripts, so i configured one manually, as you can see in the ss.