这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@amne
Copy link
Contributor

@amne amne commented Nov 20, 2024

Description

Attempt to fix #1176
The error is caused by paramiko.channel.Channel class that implements a subset of python's socket API and cannot be properly wrapped in SSL because of this.

These changes replace the use of Channel with a straightforward approach of opening a python socket to local bound host and port of a tunnel to the jump host.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

@amne amne force-pushed the fix/ssl_through_ssh_jump branch from d3fd37b to 7eb0de1 Compare November 20, 2024 18:02
@amne amne force-pushed the fix/ssl_through_ssh_jump branch from 7eb0de1 to 951721d Compare November 20, 2024 18:10
@amjith
Copy link
Member

amjith commented Nov 23, 2024

Thank you for the fix.

@amjith amjith merged commit b3efe01 into dbcli:main Nov 23, 2024
5 checks passed
@amjith
Copy link
Member

amjith commented Nov 24, 2024

@amne Does this need to to go in setup.py as well right here?

@amne
Copy link
Contributor Author

amne commented Nov 25, 2024

hi @amjith , I think it should if it helps long-term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Channel' object has no attribute 'getsockopt' when connecting with SSL through a jump server

2 participants