Cannot authenticate using script?
Hi,
I have used the GUI version of WinSCP to transfer files from my home to my university Linux account since about a year. I am now getting into scripting, and I cannot figure out how to get this to work. I have gone through the documentation on scripting – and the FAQ – but still I think that I might be doing something obviously wrong.
Using the WinSCP GUI I can log in to my university account both using the keyboard and using a key. I now tried the following script: (called
I started the
I get a black window that opens up with the following text
Any ideas on what I need to do next. Thanks to all who take their time to help me.
Regards,
O.O.
I have used the GUI version of WinSCP to transfer files from my home to my university Linux account since about a year. I am now getting into scripting, and I cannot figure out how to get this to work. I have gone through the documentation on scripting – and the FAQ – but still I think that I might be doing something obviously wrong.
Using the WinSCP GUI I can log in to my university account both using the keyboard and using a key. I now tried the following script: (called
winscp_trial.sh
in my My Documents) My username is masca
I started the
cmd
prompt on Win XP and got into the My Documents and then entered the following command:
"C:\Program Files\WinSCP3\WinSCP3.exe" /console /script=winscp_trial.sh
I get a black window that opens up with the following text
batch on confirm off Initialisation... Searching for host... Connecting to host... Authenticating... Using username "maca". Using keyboard-interactive authentication. Authenticating with pre-entered password. Access denied. Using keyboard-interactive authentication. Authentication failed. Authentication log (see session log for details): Using username "maca". Using keyboard-interactive authentication. Authenticating with pre-entered password. Access denied. Using keyboard-interactive authentication. Unable to authenticate No session. winscp>
Regards,
O.O.