Unable to authenticate SFTP Credentials using Batch Script
WINSCP - Version 5.12
Version of Windows - Windows 7
Transfer Protocol - SFTP
Error : Disconnected: Unable to authenticate
I am connecting SFTP Server using username and password directly in the batch script, but it is not working. I am not using host key and I am using the password directly.
I able to connect to my SFTP server using Graphical user interface with same credentials.
The Batch Script is mentioned below.
option batch abort
option confirm off
open sftp://username:password@Server Name
exit
Password had characters like +-. I don't know this will cause the issue.
Error :
. 2016-05-13 14:39:02.283 Using stored password.
! 2016-05-13 14:39:02.315 Further authentication required
. 2016-05-13 14:39:02.316 Further authentication required
. 2016-05-13 14:39:02.318 Attempting keyboard-interactive authentication
. 2016-05-13 14:39:02.347 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Enter password: )
. 2016-05-13 14:39:02.349 Disconnected: Unable to authenticate
Please help me to resolve it.
Thanks.
Sundaramurthy J.
Version of Windows - Windows 7
Transfer Protocol - SFTP
Error : Disconnected: Unable to authenticate
I am connecting SFTP Server using username and password directly in the batch script, but it is not working. I am not using host key and I am using the password directly.
I able to connect to my SFTP server using Graphical user interface with same credentials.
The Batch Script is mentioned below.
option batch abort
option confirm off
open sftp://username:password@Server Name
exit
Password had characters like +-. I don't know this will cause the issue.
Error :
. 2016-05-13 14:39:02.283 Using stored password.
! 2016-05-13 14:39:02.315 Further authentication required
. 2016-05-13 14:39:02.316 Further authentication required
. 2016-05-13 14:39:02.318 Attempting keyboard-interactive authentication
. 2016-05-13 14:39:02.347 Prompt (6, SSH server authentication, Using keyboard-interactive authentication., Enter password: )
. 2016-05-13 14:39:02.349 Disconnected: Unable to authenticate
Please help me to resolve it.
Thanks.
Sundaramurthy J.