Stack Trace below:-
System.Management.Automation.MethodInvocationException: Exception calling "RunCommand" with "1" argument(s): "Session operation has timed out" ---> Renci.SshNet.Common.SshOperationTimeoutException: Sessio
n operation has timed out
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.SshCommand.BeginExecute(AsyncCallback callback, Object state)
at Renci.SshNet.SshClient.RunCommand(String commandText)
at CallSite.Target(Closure , CallSite , Object , Object )
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction
at System.Management.Automation.CommandProcessorBase.Complete()
System.Management.Automation.MethodInvocationException: Exception calling "RunCommand" with "1" argument(s): "Session operation has timed out" ---> Renci.SshNet.Common.SshOperationTimeoutException: Sessio
n operation has timed out
at Renci.SshNet.Session.WaitHandle(WaitHandle waitHandle)
at Renci.SshNet.SshCommand.BeginExecute(AsyncCallback callback, Object state)
at Renci.SshNet.SshClient.RunCommand(String commandText)
at CallSite.Target(Closure , CallSite , Object , Object )
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction
2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action
1 clause, Object dollarUnderbar, Object inputToProcess)at System.Management.Automation.CommandProcessorBase.Complete()