sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
117 stars 47 forks source link

[SSH connection] Support for proxy connections #1105

Open gowerc opened 2 months ago

gowerc commented 2 months ago

Is your feature request related to a problem? Please describe. I am currently trying to use ssh-profile to access a SAS server that is only available after a proxy jump. When trying to connect I get the error:

getaddrinfo ENOTFOUND <server-name-redacted>

Describe the solution you'd like I would like the ssh-profile to work with proxy jumps

Describe alternatives you've considered NA

Additional context I am on MacOS I currently have the proxyjump setup as follows in my ~/.ssh/config file

Host <proxy-server>
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_rsa

Host <host-server>
    AddKeysToAgent yes
    UseKeychain yes
    IdentityFile ~/.ssh/id_rsa
    ProxyJump <proxy-server>

(ssh'ing from the terminal with this setup works as expected)

I have my SAS profile setup as follows:

            "server-sas": {
                "connectionType": "ssh",
                "host": "<host-server>",
                "saspath": "/opt/sas/SASHome/SASFoundation/9.4/sas",
                "username": "gowerc",
                "port": 22
            }

I think this request was originally raised here though looks like it may have gotten overlooked as I forgot to create this ticket to separate it from the original issue posted in that issue.

Environment SAS version = 9.4 RHEL = 8.8