Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Pageant #39

Open
bgoewert opened this issue Mar 9, 2022 · 0 comments
Open

Unable to use Pageant #39

bgoewert opened this issue Mar 9, 2022 · 0 comments

Comments

@bgoewert
Copy link

bgoewert commented Mar 9, 2022

Noticed that a method to use an ssh agent was added. But not a way to define what agent is being used, i.e. pageant.

Currently, #27 added a config.agent but is forced to use process.env.SSH_AUTH_SOCK.

As mentioned in #15, supposedly I can use pageant on Windows. But there is no way to set what agent I can use, at least from what I've seen.

src/tunnel.ts

if (serverInfo.ssh.useAgent) {
  if (!process.env.SSH_AUTH_SOCK) {
    throw new Error('not set SSH_AUTH_SOCK env variable');
  }

  config.agent = process.env.SSH_AUTH_SOCK;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant