After installing Vagrant/VirtualBox and connecting to the database via pgAdmin 3 using ssh tunnel, I am warned that it is not compatible with pgAdmin 3. I can still connect but after some time pgAdmin will seemingly randomly shut down. pgAdmin 4 does not have built-in support for ssh tunnel (and won't until version 2.0 comes out).
Is there a command line workaround to create an ssh tunnel in pgAdmin4?