SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
546 stars 36 forks source link

connecting to the the proxy: An invalid destination host was provided. #266

Closed sakurarain99 closed 3 years ago

sakurarain99 commented 3 years ago

This error always occurs when using proxy to connect. Here is the proxy configuration ` { "name": "name", "host": "host", "username": "username", "password": "password", "proxy": { "host": "127.0.0.1", "port": 3279, "type": "socks5" } }

`

sakurarain99 commented 3 years ago

The proxy can be used in "putty" and successfully connected

SchoofsKelvin commented 3 years ago

This issue would be easier to solve with debug logs, so please follow these steps:

sakurarain99 commented 3 years ago

This is the connection log. The prompt is undefined. What does undefined mean?

[INFO] Creating socks proxy connection for 192.168.24.38 [DEBUG] Resolved hostname "127.0.0.1" to: 127.0.0.1 [DEBUG] Connecting to 192.168.24.38:undefined over socks5 proxy at 127.0.0.1:3279

SchoofsKelvin commented 3 years ago

Seems like your config doesn't specify a port. While the SSH part is smart enough to default to 22, it seems like the proxy system isn't. Fixed it in a41c435, which will be live in v1.21.0 of the extension, about to be released in a few minutes.

sakurarain99 commented 3 years ago

OK, thank you. The problem has been solved