-
Notifications
You must be signed in to change notification settings - Fork 97
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 Private Key as a String #111
Comments
Not sure if I understand what you asking for. Do you want to pass the key itself through a CLI argument? Or do you want to use pre-established environment variables to set some of the CLI arguments? |
I am trying to remove the cli portion, and build custom binaries with everything already hard coded in. So that the binary itself already contains the ssh keys, tunnel info, host, etc. Then you can build custom binaries for specific setups, and run them in places. |
I don't think that is a secure approach since sensitive information will be easily if someone decides inspect your binary. I also don't think a lot of people will actually change and compile the code to use it. If you want avoid dealing with CLI arguments, I suggest you to use the |
Closing due to inactivity. |
How could you use this without the CLI functionality.
Like hardcode the variables for username , host, remote and local ports, private key as a byte array.
And then build it with these hard coded variables.
The text was updated successfully, but these errors were encountered: