Open BBauer42 opened 4 years ago
Anyone?
Currently you only have two options (i am not recommending one over the other; it's your choice):
(1) Don't use the prebuilt library/nuget package (it's probably a good idea anyways, as the released pre-built library is quite outdated), but download the source code from Github here. Then modify the code to make the desired member(s)/type(s) public. (as you already mentioned)
(2) Stick with the unmodified SSH.NET code, and use reflection to access non-public members you are interested in.
I'd like to get the SessionId in code that is using the SSH.NET library. Unfortunately, the SessionId is internal. I can access it when debugging, but not in code. Is there a method somewhere (or some other way) to get the SessionId (which is a byte array)? If not, I will have to manipulate the source to expose the SessionId myself. Please advise. Thanks.