If you use Ubuntu on the ORACLE cloud, special extra steps are needed.
This is what worked for me, based on this thread: ubuntu 18.04 - "No route to host" when trying to connect to a TCP service on an Oracle Cloud Intance - Super User
The following e...