cfad6a4
diff --git a/mycli/main.py b/mycli/main.py
cfad6a4
index d298f20..01eb868 100755
cfad6a4
--- a/mycli/main.py
cfad6a4
+++ b/mycli/main.py
cfad6a4
@@ -384,7 +384,7 @@ class MyCli(object):
cfad6a4
 
cfad6a4
         database = database or cnf['database']
cfad6a4
         # Socket interface not supported for SSH connections
cfad6a4
-        if port or host or ssh_host or ssh_port:
cfad6a4
+        if port or host or ssh_host:
cfad6a4
             socket = ''
cfad6a4
         else:
cfad6a4
             socket = socket or cnf['socket'] or guess_socket_location()