Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

drew.tittle

Connection has been unexpectedly closed. Server sent command exit status 0.

I'm using winscpnet.dll to connect to BitViseSSH Server in a powershell script

In the script I'm attempting to use a .xml file to make a config file of sorts. I was getting the above error and looked through the suggestions on this link, none of which were helpful in my situation.

https://winscp.net/eng/docs/message_exit_status_1

As it turns out the issue I was having is I'm using an SSH key for authentication and this error was basically saying it couldn't find the private key I was using for authentication. The login succeeded but the Key authentication failed because it couldn't find the key in the path I specified.

Just thought I'd put this somewhere so other people with the same error can find it as a possible solution

:)