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

Error: Exit code 127 when trying to add as workspace folder #403

Closed ioogithub closed 9 months ago

ioogithub commented 9 months ago

I am trying to connect to a remote system. I have the following config:

Name: user Label: remote Host: serverName Port: 22 Agent: $SSH_AUTH_SOCK

When I click on the "Add as workspace folder" I get this error as a popup notification (right bottom):

Error while connecting to SSH FS serverName:
Received exit code 127 while establishing SFTP session

In the status bar (left bottom) I see: Extension 'SSH FS' added 1 folder to workspace

If switch to the workspace I see the name of my remote in yellow with a !

If I click "Open remote SSH terminal" it works and a terminal opens, logged into the remote.

Unfortunately a terminal is not what I need to open and access files with VSCodium. What does error 127 mean. What commands are you trying to run to read the filesystem and mount it in the workspace folder so the files are accessable? How can I get this working?

ioogithub commented 9 months ago

I addempted to add debugging I added this above the first "windows.zoomLevel:

"sshfs.flags": ["DEBUG_SSH2"],


[INFO]    
Created output channel for vscode-sshfs
When posting your logs somewhere, keep the following in mind:
  - While the logging tries to censor your passwords/passphrases/..., double check!
    Maybe you also want to censor out e.g. the hostname/IP you're connecting to.
  - If you want to report an issue regarding authentication or something else that
    seems to be more of an issue with the actual SSH2 connection, it might be handy
    to reconnect with this added to your User Settings (settings.json) first:
      "sshfs.flags": [ "DEBUG_SSH2" ],
    This will (for new connections) also enable internal SSH2 logging.

[INFO]    Loading configurations...
[INFO]    Calculated config flags: {"fs_notify_errors":["write","Fix for issue #282"],"debug_ssh2":[null,"Global Settings"]}
[DEBUG]     Added configuration remote1 from [1]
[DEBUG]     Added configuration remote2 from [1]
[INFO]    Applied config layers resulting in 2 configurations
[INFO]    Extension activated, version 1.26.1, mode 1
[DEBUG]   Running VS Code version 1.82.0 {
    "node": "18.15.0",
    "v8": "11.4.183.29-electron.0",
    "uv": "1.44.2",
    "zlib": "1.2.13",
    "brotli": "1.0.9",
    "ares": "1.18.1",
    "modules": "116",
    "nghttp2": "1.51.0",
    "napi": "8",
    "llhttp": "6.0.10",
    "uvwasi": "0.0.15",
    "acorn": "8.8.2",
    "simdutf": "3.1.0",
    "undici": "5.20.0",
    "openssl": "1.1.1",
    "cldr": "42.0",
    "icu": "72.1",
    "tz": "2023a",
    "unicode": "15.0",
    "electron": "25.8.0",
    "chrome": "114.0.5735.289"
}
[INFO]    Version history: 1.26.1:1696365133464:1696371034682
ioogithub commented 9 months ago

My target device did not have sshfs installed.