vscode-sftp icon indicating copy to clipboard operation
vscode-sftp copied to clipboard

Feature request: remember password

Open stephanedr opened this issue 6 years ago • 6 comments

Is this a similar or duplicate feature request?

  • [ ] I don't know. I will go check it.
  • [x] No.

Is your feature request related to a problem? Please describe. I'm frustrated to enter the password every time the extension accesses to the server.

Describe the solution you'd like The server closes the connection after a few seconds of inactivity:

[10-19 12:47:08] [debug] < '150 Opening ASCII mode data connection for file list\r\n'
[10-19 12:47:08] [debug] < '226 Transfer complete.\r\n'
[10-19 12:47:18] [debug] > NOOP
[10-19 12:47:28] [debug] > NOOP
[10-19 12:47:38] [debug] > NOOP
[10-19 12:47:48] [debug] > NOOP
[10-19 12:47:58] [debug] > NOOP
[10-19 12:48:08] [debug] < '421 No Transfer Timeout (45 seconds): closing control connection.\r\n'

When the password is stored in the config file, the extension reconnects automatically. But when the password is not stored, the extension prompts for it. I would like the extension remembers the password entered the 1st time it connects.

Describe alternatives you've considered

Does this project help you?

stephanedr avatar Oct 19 '19 10:10 stephanedr

I am using the latest version and it's not prompt me for the password when I set it in config file:

{
    "name": "server name",
    "host": "ftp.example.com",
    "protocol": "ftp",
    "port": 21,
    "username": "asdas",
    "password": "*****",
    "remotePath": "/",
    "uploadOnSave": false
}

codehunter12345 avatar Oct 25 '19 17:10 codehunter12345

@vahidahmad, indeed, as mentioned in my request:

When the password is stored in the config file, the extension reconnects automatically. But when the password is not stored, the extension prompts for it.

stephanedr avatar Oct 25 '19 19:10 stephanedr

I am using the latest version and it's not prompt me for the password when I set it in config file:

{
    "name": "server name",
    "host": "ftp.example.com",
    "protocol": "ftp",
    "port": 21,
    "username": "asdas",
    "password": "*****",
    "remotePath": "/",
    "uploadOnSave": false
}

But this leaves the password in plain text in a normal text file (the config file) -- this is a security issue... Ideally the password should be stored in some encrypted way, or am I missing something here?...

Paulo--M-- avatar Aug 19 '20 21:08 Paulo--M--

I would love it if the password should only be required once per session. I wouldn't like to store it, but to enter it on every-single-save is a bit too much.

JoepBC avatar Feb 03 '21 16:02 JoepBC

I think it would also be nice if the plugin supported asymmetric SSH encryption keys. I'll look into this.

ghost avatar Feb 03 '21 23:02 ghost

It is a big security issue to store passwords in a plain text. Can you add a master password in the configuration to decrypt passwords that are saved encrypted?

mabehiry avatar Jan 08 '24 20:01 mabehiry