Please attach a complete session log file both from the GUI and the code.
- martin
Exception calling "Open" with "1" argument(s): "Connection has been unexpectedly closed.
Server sent command exit status 0.
Authentication log (see session log for details):
Using username "nwcomputing".
Authenticating with public key "rsa-key-********".
Authentication failed."
At C:\Users\NWAdmin\Downloads\Win\Download.ps1:19 char:5
+ $session.Open($sessionOptions)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SessionRemoteException