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

Using ssh factory throws a NotImplementedException #32

Open
grimurd opened this issue Jan 22, 2024 · 1 comment
Open

Using ssh factory throws a NotImplementedException #32

grimurd opened this issue Jan 22, 2024 · 1 comment

Comments

@grimurd
Copy link

grimurd commented Jan 22, 2024

Attempting to use the library with ssfactory from SystemInteract.Remote.

Everything I attempt to do throws a NotImplementedException.

Example

var factory = new SshFactory(host, username, password);

system = new IpTablesSystem(factory, new IPTablesBinaryAdapter());

system.GetChain("filter", "FORWARD", 4);

Results in
NotImplementedException: The method or operation is not implemented. SystemInteract.Remote.Remote.SshProcess.get_StartInfo() SystemInteract.ProcessHelper.ReadToEnd(ISystemProcess process, Action<string> output, Action<string> error, int timeout) SystemInteract.ProcessHelper.ReadToEnd(ISystemProcess process, out string output, out string error, int timeout) IPTables.Net.Iptables.Adapter.Client.IPTablesBinaryAdapterClient.ListRules(string table) IPTables.Net.IpTablesSystem.GetRules(IIPTablesAdapterClient client, string table) IPTables.Net.IpTablesSystem.GetChain(IIPTablesAdapterClient client, string table, string chain) IPTables.Net.IpTablesSystem.GetChain(string table, string chain, int ipVersion)

Is there any way for this to work or is this still unfinished?

@splitice
Copy link
Owner

Looks your issue is here: https://github.com/splitice/SystemInteract.Net/blob/237f6f4963208de2cfa4a7e3c113017eb73a2e2c/SystemInteract/ProcessHelper.cs#L34C25-L34C34

That requires an unimplemented method.

SystemInteract.Remote is undertested, feel free to design a CI flow for it.

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