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

SSH Private Key as a String #111

Closed
0187773933 opened this issue May 19, 2020 · 4 comments
Closed

SSH Private Key as a String #111

0187773933 opened this issue May 19, 2020 · 4 comments

Comments

@0187773933
Copy link

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.

@davrodpin
Copy link
Owner

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?

@0187773933
Copy link
Author

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.

@davrodpin
Copy link
Owner

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 alias feature.

@davrodpin
Copy link
Owner

Closing due to inactivity.

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

2 participants