I cant connect via ssh from host mac os

I followed these steps but still not working

Hi @Basem-Shoukry,
Try to use “Bridged network”, you have to choose the interface Wireless or Ethernet. Another point, be sure that openssh-server is installed and up on virtual machine.
The following guide can help you better understand networking on virtual box VirtualBox Network Settings: All You Need to Know

Regard

I fixed it by adding the host and guest ports to 22 and leaving the host and guest IPs blank.
Thanks.