liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 260 forks source link

Feature request: remember password #672

Open stephanedr opened 4 years ago

stephanedr commented 4 years ago

Is this a similar or duplicate feature request?

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?

codehunter12345 commented 4 years ago

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
}
stephanedr commented 4 years ago

@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.

Paulo--M-- commented 4 years ago

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?...

JoepBC commented 3 years ago

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.

ghost commented 3 years ago

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

mabehiry commented 8 months ago

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?