Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

sshConfigPath doesn't seem to be honored for hosts definitions #463

Open aleqx opened 5 months ago

aleqx commented 5 months ago

Do you read the FAQ?

Using VSCode on MacOS. I am setting the correct path for sshConfigPath (which is the default ~/.ssh/config) but it doesn't seem to be honored. It complains that the hostname could not be resolved, despite it being defined in ~/.ssh/config and despite the ssh command working fine.

Running ssh devhost in a terminal will connect me directly just fine, with the contents in ~/.ssh/config mentioned below, but this sftp extension fails saying host could not be resolved.

Does this sftp extension actually parse the contents in ~/.ssh/config for host definitions? If not, what is the sshConfigPath actually used for?

Host dev devhost devhost.example.com
    HostName devhost.example.com
    Port 22222

Host *
    # no passphrase privkey
    IdentityFile ~/.ssh/nopass_id_rsa.key
    #Compression yes
    User root
    ServerAliveInterval 5
    ServerAliveCountMax 1
    TCPKeepAlive yes