vscode-remote-workspace icon indicating copy to clipboard operation
vscode-remote-workspace copied to clipboard

Is there a way to prompt for password instead of hard coding it?

Open ding-qin opened this issue 5 years ago • 10 comments

Here is my configuration for sftp-based remote workspace, and I don't want to provide password in clear text in this file, so is there a way to pop up asking for password?

{ "folders": [{ "uri": "sftp://[email protected]/", "name": "test" }] }

ding-qin avatar Oct 25 '18 01:10 ding-qin

Yes! See below:

{ "folders": [ { "uri": "sftp://[email protected]/?tryKeyboard=1", "name": "test" } ] }

You can find all the different url parameters here.

GinoMan avatar Oct 25 '18 18:10 GinoMan

Thanks GinoMan, tried but there is no pop-up window asking for password. My VS Code is 1.28.2, btw.

ding-qin avatar Oct 25 '18 20:10 ding-qin

The same problem for me. It does not ask for any password to enter, just shows failed connection.

BrodaUa avatar Oct 26 '18 09:10 BrodaUa

@GinoMan Doesn't work for me either.

Olian04 avatar Nov 02 '18 09:11 Olian04

Doesn't work for me too.

NicolasGoeddel avatar Nov 08 '18 10:11 NicolasGoeddel

me 2

TLMNicolas avatar Nov 09 '18 08:11 TLMNicolas

I have password contain @ character , how to put the password in uri format?

langit7 avatar Nov 15 '18 13:11 langit7

I have password contain @ character , how to put the password in uri format?

You need to URL encode the @ as %40.

NicolasGoeddel avatar Nov 15 '18 13:11 NicolasGoeddel

No prompt w/ param ?tryKeyboard=1 on version 1.29.1 either.

PWills2013 avatar Nov 20 '18 21:11 PWills2013

No prompt for password, the connection fails. I wrote a bunch of debug details, then saw a previous discussion and deleted everything... trykeyboard is not meant to ask for a password.

So, is it possible to add this feature?

ironbishop avatar Jan 23 '19 14:01 ironbishop