Skip to content

Add support of env when establishing a SFTP connection #584

@di-ov

Description

@di-ov

In the version 1.17.0 of the ssh2 package a new feature was added: mscdex/ssh2#1445

The feature adds support for passing an object of key-value variables when establishing a SFTP connection.

i.e. potentially a basic example would look like:

const config = {
  host: 'arch-vbox',
  port: 22,
  username: 'tim',
  password: 'xxxx',
  env: { MY_VAR: "test value" }
};

const sftp = new Client();

sftp
  .connect(config)
  .then(() => {
    return sftp.list(remoteDir);
  });

Could support for this feature be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions