Passing login and password in a script

Advertisement

Kash
Guest

Passing login and password in a script

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: ")

Reply with quote

Advertisement

You can post new topics in this forum