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

Advertisement

drew.tittle
Guest

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

:)

Reply with quote

Advertisement

You can post new topics in this forum