GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Upgrade paramiko lib for SSH tunnel features · Issue #10400 · pgadmin-org/pgadmin4

Upgrade paramiko lib for SSH tunnel features #10400

New issue
Copy link
New issue
Copy link
Open
Open
Upgrade paramiko lib for SSH tunnel features#10400
Copy link
Labels
Housekeeping

Description

@aelgn
aelgn
opened on Sep 8, 2026
Issue body actions

Describe the solution you'd like

Recently our operations team have begun to get errors when using the SSH tunnel with identity file to connect to our databases. Eg. "Error reading SSH protocol banner" and other MacOS ssh-agent related errors.

Looking at the server_manager.py and requirements.txt it would seem that pgAdmin uses the class SSHTunnelForwarder from the pypi package sshtunnel which seems to be abandonware, with latest release 2021 using the paramiko lib version 2.7.2 which itself was released 2020.

sshtunnel is basically just a wrapper around paramiko to expose paramiko's ssh functionality to a CLI so the need for it in pgAdmin is non existent.

I recommend dropping the abandoned sshtunnel lib and to use paramiko directly. Looking at:
https://github.com/pahaz/sshtunnel/blob/master/sshtunnel.py
it would seem that porting the class SSHTunnelForwarder directly into pgAdmin would be trivial. This would make it possible to use a newer paramiko release to future proof pgAdmin's ssh tunnel capabilities and benefit from paramikos active development and fixes in SSH protocol banner parsing and ssh-agent key loading.

A 1-to-1 copy of SSHTunnelForwarder would eliminate any risk of regression, but some consideration would have to be made when upgrading the paramiko version.

https://github.com/paramiko/paramiko

Activity

  1. aelgn
    added
    Feature
    on Sep 8, 2026
  2. dpage
    added
    Housekeeping
    and removed
    Feature
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Housekeeping

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.