Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Prompt for key phrase #3

Closed
7twin opened this issue May 25, 2018 · 4 comments
Closed

Prompt for key phrase #3

7twin opened this issue May 25, 2018 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@7twin
Copy link

7twin commented May 25, 2018

Is there any way to prompt for password rather than saving it in clear text inside the project file? I tried to force tryKeyboard by supplying a wrong password and key, but that has no effect

@mkloubert
Copy link
Owner

mkloubert commented May 25, 2018

@7twin

As explained here and here, this is an internal, non interactive thing of the ssh2-sftp-client module, I use.

If logging in with username and password, you can use the auth parameter for that:

  1. Create a file like sftp_server1 inside your home directory and save your username and password there, like in an URI: USERNAME:PASSWORD
  2. Add the auth parameter to your URI: auth=sftp_server1

If you use a key file with a passphrase, you can do the same thing by setting up the phrase parameter as path to a file, that contains that phrase, since version 0.21.1.

@mkloubert mkloubert added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 25, 2018
@7twin
Copy link
Author

7twin commented May 25, 2018

@mkloubert I see, but wouldn't that just move where the cleartext passphrase is?

@mkloubert
Copy link
Owner

mkloubert commented May 25, 2018

@7twin

Yes, but it moves it from the visible URI to an external file.

The problem is that VS Code runs a lot of background operations, when using the new FileSystem API (looking for .vscode and node_modules subfolders), which can produce some conflicts (double display of password prompts, e.g.).

The aim of that extension is simply to handle URIs and the settings / parameters in them, without interacting with a GUI or workspace (settings).

I will try to find a soulution for that.

@7twin
Copy link
Author

7twin commented May 25, 2018

I'll close it for now then, thanks

@7twin 7twin closed this as completed May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants