I installed Kali in VirtualBox and wanted to connect to it from my host machine (Windows 10). I noticed I wasn't able to connect to it. So I followed the instruction to resolve the problem:
sudo apt install sshsudo service ssh start # You have to enable SSH every time after the boot.sudo systemctl enable ssh # It enables SSH on the boot.
​