mysql / mysql/mysql-shell-plugins

[Feature] Support SSH Client Config `Inlcude` & `ProxyJump`

Open
#38 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
96
Forks
22
PR merge metrics
No merged PRs in 30d

Description

  • ~/.ssh/config

    Include ~/.ssh/config.etc
    
  • ~/.ssh/config.etc

    Host ssh-dump
      HostName {IP}
      Port 2220
      User root
    
    Host ssh-target
      HostName {IP}
      User admin
      ProxyJump ssh-dump
      IdentityFile ~/.ssh/cert/target.pem
    
  • command-line connection

    ssh ssh-target
    
  • Mysql Shell for VS Code

    ERROR: Shell.open_session: Cannot open SSH Tunnel: Failed to resolve hostname ssh-target (Name or service not known)
    
    Screenshot 2023-11-23 at 20 32 30

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the MySQL Shell for VS Code resolves the SSH target from ~/.ssh/config, using the ssh ssh-target example as the reference behavior. Compare that with the Include file ~/.ssh/config.etc and the ProxyJump ssh-dump configuration. Done means the VS Code connection can resolve ssh-target and establish the SSH tunnel without the reported hostname error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.