I need to have DataGrip working with our Postgres server using Google 2FA.
Several tickets in a bug tracker asked to implement/fix 2FA support in SSH tunnels, but they are all marked as duplicates of each other: https://youtrack.jetbrains.com/issue/DBE-2100, https://youtrack.jetbrains.com/issue/DBE-2373, https://youtrack.jetbrains.com/issue/DBE-3241. Could JetBrains please re-open one of them?
The workaround is to use an external SSH tunnel (on Mac, e.g. via SSH Tunnel Manager) and connect to localhost. But, it's less convenient.