Virtual Box ssh not working on Virtual Box Ubuntu machine

  1. From within the VM, can you ssh to localhost? If not, check your ssh server.
  2. If you aren't using bridged mode for networking, you may need to access VirtualBox settings and forward port 22. This article has instructions and screenshots.
  3. Is there a firewall running on the VM? Ubuntu ships with ufw, so try ufw status first, before tinkering with iptables.