Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftp Disable #287

Open
Ksurabhi08 opened this issue Sep 16, 2021 · 1 comment
Open

sftp Disable #287

Ksurabhi08 opened this issue Sep 16, 2021 · 1 comment
Labels
bug Something isn't working waiting Waiting for confirmation, more information, ...

Comments

@Ksurabhi08
Copy link

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
Copy link
Owner

SchoofsKelvin commented Sep 18, 2021

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

  • Add DEBUG_SSH2 to the sshfs.flags array in VS Code's User Settings (settings.json)
    e.g. "sshfs.flags": ["DEBUG_SSH2"]
  • If you already have a connection open, close it completely (or even reload the window)
  • Go to Output > SSH FS and copy the log from there after replicating your bug
  • While it should censor passwords/passphrases, I recommend checking it for (other) sensitive data first.
    (especially since DEBUG_SSH2 activates some internal logging, which is less likely to be censored)

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.

@SchoofsKelvin SchoofsKelvin added bug Something isn't working waiting Waiting for confirmation, more information, ... labels Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting Waiting for confirmation, more information, ...
Projects
None yet
Development

No branches or pull requests

2 participants