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

Error running command sshfs.add, can't connect #288

Closed
kodachrome128 opened this issue Sep 17, 2021 · 4 comments
Closed

Error running command sshfs.add, can't connect #288

kodachrome128 opened this issue Sep 17, 2021 · 4 comments
Labels
bug Something isn't working waiting Waiting for confirmation, more information, ...

Comments

@kodachrome128
Copy link

The extension worked for a day, then today I decided to log on to complete some lab exercises and it wouldn't connect, and gives me this message in the bottom right:

Error running command sshfs.add: Running the contributed command: 'sshfs.add' failed.. This is likely caused by the extension that contributes sshfs.add.

The output files for SSH FS just says "Connecting to " and shows nothing else when it fails.

@spanishpear
Copy link

This happened to me when I had the wrong host. (ie i had login@blah.blah.blah instead of login.blah.blah.blah)

@SchoofsKelvin
Copy link
Owner

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)

@SchoofsKelvin SchoofsKelvin added bug Something isn't working waiting Waiting for confirmation, more information, ... labels Sep 18, 2021
@kodachrome128
Copy link
Author

Shrey????????????????? Dayum bro, didn't expect to see you here, almost thought it wasn't you but your dyed hair gave you away. Anyways the problem just seems to pass and go, and the last time I got it, I fixed it by connecting to the uni vpn. Super weird but the problem vanished today. Oh and about the debug logs, it would just get stuck and "Connecting to " and doesn't update when the error message pops up.

@SchoofsKelvin
Copy link
Owner

If you enabled the DEBUG_SSH2 flag, it should show a lot more logs than just the "Connecting to" one.

If the problem returns, post the logs here and reopen this issue.

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

3 participants