You check (with nslookup, dig or host) what results the DNS lookups return for the domains which you want to access via SSH, and then you take measures accordingly on your settings, like unblocking or whitelisting. As you don't mention the domain names in question, no further hints can be given.
It's not OpenDNS, but your OpenDNS settings. And that's the difference between OpenDNS and Google DNS: You can configure OpenDNS behavior, but not Google DNS behavior. This bares the risk that you configure things which in fact you do not want, as in your case.