When trying to connect with a SCPClient, I recieve this:
"Get-SCPFile : The WriteObject and WriteError methods cannot be called from outside the overrides of the
BeginProcessing, ProcessRecord, and EndProcessing methods, and they can only be called from within the same thread.
Validate that the cmdlet makes these calls correctly, or contact Microsoft Customer Support Services."
I loaded the source for SshNet and debugged, and it seems that in Session.cs at line 752 is where the problem lies. The part that has me boggled is a SshClient doesn't suffer this issue. Is this something you can look into?
The end result is to have a Powershell module for SSH, and you're library is awesome outside of this one minor item.
"Get-SCPFile : The WriteObject and WriteError methods cannot be called from outside the overrides of the
BeginProcessing, ProcessRecord, and EndProcessing methods, and they can only be called from within the same thread.
Validate that the cmdlet makes these calls correctly, or contact Microsoft Customer Support Services."
I loaded the source for SshNet and debugged, and it seems that in Session.cs at line 752 is where the problem lies. The part that has me boggled is a SshClient doesn't suffer this issue. Is this something you can look into?
The end result is to have a Powershell module for SSH, and you're library is awesome outside of this one minor item.