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

sftp Disable #287

Open Ksurabhi08 opened 2 years ago

Ksurabhi08 commented 2 years ago

Hi Kelvin,

Thank you for the Extension.

I've been using extension for a while but looks like our org is implementing CyberArk and asked to use CyberArk to connect to server. I'm trying to use the extension but it is failing to connect because of sftp issue "Error while connecting to SSH FS test: Received exit code 255 while establishing SFTP session"

Sometimes i also see , "Error while connecting to SSH FS test Could not detect home directory" and "Couldn't detect the home directory for 'test'" even after I've added "CHECK_HOME": "false" in the settings json.

Is there a way we can disable sftp connection and is what should we added in settings.json to ignore checking the home directory ?

Thank you!

SchoofsKelvin commented 2 years ago

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

Also what kind of server OS is your remote server? Which kind/version of SSH, e.g. OpenSSH?


You want to disable the SFTP part of the extension, i.e. the whole transferring files part? Technically this is possible if you only want to use the extension for terminals, but in that case directly using ssh in a terminal (profile) is all you need.

For using a negative CHECK_HOME flag, you need to add -CHECK_HOME to the "flags" array, see #270 for information/examples.