Topic "Passing login and password in a script"

Author Message
Kash

Guest


I am trying to pass login and password of my server in a .bat script. It works fine with interactive input from my keyboard but gives b/m error in log file when i try to pass it in my script.

Promt for Username appears and it exits after few seconds saying no instructions passed. How can i disable this prompt so it can use login and password passed in script file.

. 2017-05-22 16:05:41.753 Server refused keyboard-interactive authentication
. 2017-05-22 16:05:41.753 Server offered these authentication methods: publickey,password,keyboard-interactive
. 2017-05-22 16:05:41.753 Prompt (password, "SSH password", <no instructions>, "&Password: ")
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
Show us your script.

Or even better, get a correct script or batch file generated by WinSCP GUI:
https://winscp.net/eng/docs/ui_generateurl#script
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License