Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Update SSH tunnel library to support key format generated by OpenSSH 7.8 + #215

Open
xiazcy opened this issue Dec 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@xiazcy
Copy link
Contributor

xiazcy commented Dec 22, 2022

Describe the bug

The current jsch library we use does not support ssh keys generated by OpenSSH 7.8+ (which has -----BEGIN OPENSSH PRIVATE KEY----- instead of the previous -----BEGIN RSA PRIVATE KEY-----), and so an invalid privatekey error will occur. As described with resolutions provided in https://stackoverflow.com/questions/53134212/invalid-privatekey-when-using-jsch.

I'd propose to update library to a fork https://github.com/mwiede/jsch instead. First attempt with new library worked locally, however, it failed to authenticate with the SSH tunnel in Tableau connector, so additional investigation will be needed around that.

Steps to Reproduce

  • [ x] Is the JDBC Driver being used in a BI tool?
  • You will encounter a private key error if you use the SSH tunnel via the driver or Tableau connector (instead of using command line) with a .pem file generated by OpenSSH 7.8+ (i.e. starts with -----BEGIN OPENSSH PRIVATE KEY-----)

Expected behavior

Screenshots

Environment

Additional Context

@xiazcy xiazcy added the bug Something isn't working label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant