mkloubert/vs-deploy

Store password in memory after prompt for SFTP

shaddyz opened this issue · 3 comments

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.

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.

@shaddyz

Can you post an example of your settings?

  "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"
        }
      ]
    }
  }