winscp modules failing with error - Connection has been unexpectedly closed. Server sent command exit status 0.

book

Article ID: 207756

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

WINSCP modules are failing in v9.3 version with error - Connection has been unexpectedly closed. Server sent command exit status 0. Although the credentials are fine and have not been changed but the modules are failing with Access Denied issue.

 

 

* 2020-12-02 07:08:49.744 WARNING! Giving up security and accepting any host key as configured!

. 2020-12-02 07:08:49.744 Host key fingerprint is:

. 2020-12-02 07:08:49.744 ssh-rsa 2048 89:0c:0e:9c:0f:df:c9:5e:22:47:40:c5:65:df:8b:32

. 2020-12-02 07:08:49.744 Initialised AES-256 SDCTR client->server encryption

. 2020-12-02 07:08:49.744 Initialised HMAC-SHA-256 client->server MAC algorithm

. 2020-12-02 07:08:49.744 Initialised AES-256 SDCTR server->client encryption

. 2020-12-02 07:08:49.744 Initialised HMAC-SHA-256 server->client MAC algorithm

! 2020-12-02 07:08:49.791 Using username "xxxxxxxx".

. 2020-12-02 07:08:49.791 Attempting keyboard-interactive authentication

. 2020-12-02 07:08:49.807 Server refused keyboard-interactive authentication

. 2020-12-02 07:08:49.807 Prompt (password, "SSH password", <no instructions>, "&Password: ")

. 2020-12-02 07:08:49.807 Using stored password.

. 2020-12-02 07:08:49.807 Sent password

. 2020-12-02 07:08:49.822 Password authentication failed

! 2020-12-02 07:08:49.822 Access denied

. 2020-12-02 07:08:49.822 Prompt (password, "SSH password", <no instructions>, "&Password: ")

. 2020-12-02 07:08:49.822 Disconnected: Unable to authenticate

Cause

This issue occurs when the password contains $ symbol like Wi$0rd.

Environment

Release : 9.3

Component : APPLICATIONS MANAGER

Resolution

Avoid $ symbol in the OS passwords that should resolve the issue.