SchoofsKelvin / vscode-sshfs

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

agentForward activation #265

Closed amoire closed 3 years ago

amoire commented 3 years ago

Hello,

Is it possible to activate agentForward when an agent is configured ?

On connect.ts file, createSSH function (see attached file) : if (config.agent) { finalConfig.agentForward = true; } Best regards

connect.zip

SchoofsKelvin commented 3 years ago

Enabling it by forward seems a bit of a security issue. You can modify the config's JSON file (VSCode's User Settings' settings.json file) and manually add an "agentForward": true field to your config.

I could add a checkbox in the Settings UI for this though.

SchoofsKelvin commented 3 years ago

Added a checkbox in the settings UI: image

This change (d167ac8) will be available in v1.20.2 of the extension, which will be released in about 10 minutes or so.