[pgAdmin4][Patch] Feature #1447 SSH Tunnel

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: [pgAdmin4][Patch] Feature #1447 SSH Tunnel
Date: 2018-04-19 05:48:22
Message-ID: CANxoLDerTMvnMCMd-D7mX+Drxs8g7ADjkg1L3QEMKr4Q1qmHtg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers

I have implemented the SSH Tunnel support using
https://pypi.org/project/sshtunnel/ python package. Added "SSH Tunnel" Tab
in server dialog. This implementation supports user name /password and
private/public key combination with Passphrase to crate SSH Tunnel. I have
added regression test case to add server using SSH Tunnel options.

The given python package(https://pypi.org/project/sshtunnel/) support
Python version *2.7, 3.4+*.
It uses Paramiko (Python implementation of SSHv2 protocol) which actually
drops support for Python 2.6. So I have added *SUPPORT_SSH_TUNNEL* parameter
in config.py which checks the python version and set the flag accordingly.
In case of Python 2.6, 3.0, 3.1, 3.2 and 3.3 control on the "SSH Tunnel"
tab of server dialog will be disabled.

Please review it, and if looks good please commit the code.

--
*Akshay Joshi*

*Sr. Software Architect *

*Phone: +91 20-3058-9517Mobile: +91 976-788-8246*

Attachment Content-Type Size
SSH_Tunnel_v1.patch application/octet-stream 45.0 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Soumya Tripathy 2018-04-19 12:41:32 Latest dpage/pgadmin4 docker image query tool issue
Previous Message Joao De Almeida Pereira 2018-04-18 14:22:58 Re: [pgadmin4][patch] Initial patch to decouple from ACI Tree