vs-deploy icon indicating copy to clipboard operation
vs-deploy copied to clipboard

Store password in memory after prompt for SFTP

Open shaddyz opened this issue 7 years ago • 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.

shaddyz avatar Dec 02 '17 02:12 shaddyz

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 avatar Dec 02 '17 04:12 shaddyz

@shaddyz

Can you post an example of your settings?

mkloubert avatar Dec 02 '17 06:12 mkloubert

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

shaddyz avatar Dec 05 '17 22:12 shaddyz