diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index ef895ab..e92c7d8 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -1183,11 +1183,10 @@ class X2GoBroker(object):
         if profile.has_key(u'sshproxyhost') and profile[u'sshproxyhost']:
             remote_sshproxy_agent = {
                 u'hostname': profile[u'sshproxyhost'],
+                u'port': "22"
             }
-            if profile.has_key(u'sshproxyhost') and profile[u'sshproxyhost']:
-                remote_sshrpoxy_agent[u'port'] = profile[u'sshproxyhost']
-            else:
-                remote_sshrpoxy_agent[u'port'] = "22"
+            if profile.has_key(u'sshproxyport') and profile[u'sshproxyport']:
+                remote_sshproxy_agent[u'port'] = profile[u'sshproxyport']
         else:
             remote_sshproxy_agent = None
 
