diff --git a/docs/en_US/release_notes_3_2.rst b/docs/en_US/release_notes_3_2.rst index bfc5d9546..860bf57c5 100644 --- a/docs/en_US/release_notes_3_2.rst +++ b/docs/en_US/release_notes_3_2.rst @@ -26,4 +26,5 @@ Bug fixes | `Bug #3446 `_ - Various procedure/function related fixes for EPAS/PG 11. | `Bug #3448 `_ - Exclude system columns in Import/Export. | `Bug #3457 `_ - Fix debugging of procedures in EPAS packages. -| `Bug #3468 `_ - Support SSH tunneling with keys that don't have a passphrase. \ No newline at end of file +| `Bug #3468 `_ - Support SSH tunneling with keys that don't have a passphrase. +| `Bug #3471 `_ - Ensure the SSH tunnel port number is honoured. \ No newline at end of file diff --git a/web/pgadmin/utils/driver/psycopg2/server_manager.py b/web/pgadmin/utils/driver/psycopg2/server_manager.py index 3a2fdd621..dbc3497dd 100644 --- a/web/pgadmin/utils/driver/psycopg2/server_manager.py +++ b/web/pgadmin/utils/driver/psycopg2/server_manager.py @@ -400,7 +400,7 @@ WHERE db.oid = {0}""".format(did)) # and password if self.tunnel_authentication == 1: self.tunnel_object = SSHTunnelForwarder( - self.tunnel_host, + (self.tunnel_host, int(self.tunnel_port)), ssh_username=self.tunnel_username, ssh_pkey=get_complete_file_path(self.tunnel_identity_file), ssh_private_key_password=tunnel_password, @@ -408,7 +408,7 @@ WHERE db.oid = {0}""".format(did)) ) else: self.tunnel_object = SSHTunnelForwarder( - self.tunnel_host, + (self.tunnel_host, int(self.tunnel_port)), ssh_username=self.tunnel_username, ssh_password=tunnel_password, remote_bind_address=(self.host, self.port)