mkloubert / vs-deploy

Visual Studio Code extension that provides commands to deploy files of a workspace to a destination.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vs-deploy
MIT License
131 stars 24 forks source link

Store password in memory after prompt for SFTP #127

Open shaddyz opened 6 years ago

shaddyz commented 6 years ago

When using SFTP with a password prompt, the password should be preserved in memory until a failed authentication attempt (password no longer valid) or the program exits. The current behavior prompts for a password on every connection attempt.

shaddyz commented 6 years ago

After reviewing the code, it looks like the password is supposed to be cached for future connections. However, since I'm being promoted each time, something is not working right.

mkloubert commented 6 years ago

@shaddyz

Can you post an example of your settings?

shaddyz commented 6 years ago
  "settings": {
    "deploy": {
      "packages": [
        {
          "name": "MyPackage",
          "exclude": [
            "node_modules/**"
          ],
          "deployOnSave": true
        }
      ],
      "targets": [
        {
          "type": "sftp",
          "name": "MyCloudServer",

          "dir": "/home/shaddy/workspaces/MyWorkspace/MyPackage",
          "host": "my.host.name.example.com",
          "port": 22,
          "user": "shaddy"
        }
      ]
    }
  }