-
Notifications
You must be signed in to change notification settings - Fork 670
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
SSH Client sending environment variable #1337
Comments
You pass them in the options object to |
thanks, bit of trial and error and we are passing it correctly. We needed to have: |
@alanhe421 The server may be restricting what environment variables you can send. For OpenSSH servers, this is controlled by their |
Thank you very much. I just checked and confirmed that this was indeed the issue. |
Server side (ssh2) we are processing the session.on 'env' and using it to transfer required information to our server. This works well from a typical ssh command line. We are trying to create a ssh2 client passing the key information (working) but do not see any methods or ways to send the environment key/value to the server (to emulate the -o SendEnv=X_ENVIRONMENT_VARIABLE ssh option). Is this possible using the ssh2/client?
The text was updated successfully, but these errors were encountered: