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

-F option and support for SendEnv #41

Open
rgillan opened this issue Oct 24, 2023 · 1 comment
Open

-F option and support for SendEnv #41

rgillan opened this issue Oct 24, 2023 · 1 comment

Comments

@rgillan
Copy link

rgillan commented Oct 24, 2023

So we have tried setting various things via the -F configuration file. We have verified (as others have) that it does not pass User or Port entries, although these can be overcome by including in the command line (e.g. user@server:port).
In our application, we need to pass an environment variable which is usually passed in the ssh command line as:
-o SendEnv=X_ENVIRONMENT_VARIABLE
In the -F configfile, if we have a line such as:
SendEnv X_ENVIRONMENT_VARIABLE
we would expect that in the ssh connection exchange, sshping would send the key/value of the environment variable as an 'env' (environment var) event in the ssh session.
Is there any way we can do this with the latest sshping build, or are we doing something incorrect with the -F configuration file

@rgillan
Copy link
Author

rgillan commented Oct 24, 2023

alternatively support for -o on the command line would also suffice (to send the env variable):
-o SendEnv=X_ENVIRONMENT_VARIABLE

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