Problem scenario
You are using Oracle VirtualBox. You get “ssh connect to host x.x.x.x port 22: No route to host”. What do you do?
Solution
In Oracle VirtualBox, go to Devices -> Network -> Network Settings. Is it attached to “Internal Network”? Try attaching it to “Bridged Adapter” instead.