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

How to specify that password is actually empty so that I won't be prompted for it? #304

Open
jraygauthier opened this issue Oct 25, 2021 · 3 comments
Labels
waiting Waiting for confirmation, more information, ...

Comments

@jraygauthier
Copy link

Currently using v1.23.1 on code v1.61.0.

@jraygauthier
Copy link
Author

Specifying an empty password was working fine with the previous version I was using, so this is actually a regression.
Might be related: #192 or even the cause of .

@SchoofsKelvin
Copy link
Owner

Do you know of a version where this issue doesn't happen? I don't remember touching any code related to this in quite a while.

Does entering anything as a password work? The underlying ssh2 library should first attempt username-only authentication (none) before trying password. Enabling DEBUG_SSH2 should show none happening before password:

  • Add DEBUG_SSH2 to the sshfs.flags array in VS Code's User Settings (settings.json)
    e.g. "sshfs.flags": ["DEBUG_SSH2"]
    • See this issue for more information about adding flags
  • If you already have a connection open, close it completely (or even reload the window)
  • Go to Output > SSH FS to get the logs with debugging enabled

@SchoofsKelvin SchoofsKelvin added the waiting Waiting for confirmation, more information, ... label Oct 27, 2021
@appenzellergeller
Copy link

appenzellergeller commented Jul 27, 2023

I am actually also interested in this possibility.
If I have a target device with no password set, I would like to specify something like <no-password> as pasword.

I also tried with an empty string in the settings.json file like:

    "sshfs.configs": [
        {
            "name": "fct-015",
            "host": "fct015",
            "root": "/",
            "username": "root",
            "password": "",
            "newFileMode": "0o777"
        }
    ],

Output of SSH FS is:

[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 fct-015 from [1]
[INFO]    Applied config layers resulting in 1 configurations
[INFO]    Extension activated, version 1.26.1, mode 1
[DEBUG]   Running VS Code version 1.80.1 {
    "node": "16.17.1",
    "v8": "10.8.168.25-electron.0",
    "uv": "1.43.0",
    "zlib": "1.2.12.1-motley",
    "brotli": "1.0.9",
    "ares": "1.18.1",
    "modules": "110",
    "nghttp2": "1.47.0",
    "napi": "8",
    "llhttp": "6.0.9",
    "openssl": "1.1.1",
    "cldr": "41.0",
    "icu": "71.1",
    "tz": "2023c",
    "unicode": "14.0",
    "electron": "22.3.14",
    "microsoft-build": "21893604",
    "chrome": "108.0.5359.215"
}
[INFO]    Version history: 1.26.1:1685448893362:1690453117935
[INFO]    [createConnection(fct-015,config)] Creating a new connection for 'fct-015'
[INFO]    Calculating actual config
[DEBUG]   	No privateKey, agent or password. Gonna prompt for password

Is it possible to add this possiblity / setting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting for confirmation, more information, ...
Projects
None yet
Development

No branches or pull requests

3 participants