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

Wait longer for timeouts on a command line client #62

Open
fire opened this issue Apr 14, 2015 · 1 comment
Open

Wait longer for timeouts on a command line client #62

fire opened this issue Apr 14, 2015 · 1 comment

Comments

@fire
Copy link

fire commented Apr 14, 2015

Adding a Number(process.env.SDC_SSH_TIMEOUT) variable in /usr/local/lib/node_modules/smartdc/node_modules/smartdc-auth/node_modules/ssh-agent/lib/ssh_agent_client.js allows you to wait longer for timeouts on the command line client.

function SSHAgentClient(options) {
  options = options || {};
  this.timeout = options.timeout || Number(process.env.SDC_SSH_TIMEOUT) || 1000;

  this.sockFile = process.env.SSH_AUTH_SOCK;
  if (!this.sockFile)
    throw new MissingEnvironmentVariableError('SSH_AUTH_SOCK');
}

Usage: SDC_TESTING=1 SDC_URL=https://example.com SDC_ACCOUNT=example SDC_KEY_ID=00:00 SDC_SSH_TIMEOUT=3000 sdc-listdatacenters

@fire
Copy link
Author

fire commented Apr 14, 2015

On my computer a ssh timeout of 3000 works for me.

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