SCP/SFTP Login scripting
I require connection to an old unix system with some quirky login techniques. After initial login it requires a carriage return to continue login to the server. I can complete the login correctly using the GUI and selecting "Enter" after the prompt. The scripting is pretty straightforward ... the login is the only hang. I have looked around exetnsively to find a solution but I myust be missing something simple.
Any help is appreciated. The info is below ... Ip and usernames redacted for obvious reasons.
Script_________
option batch off
option confirm off
open sftp://user:PWD@server -timeout=30
cd /***/japan_xmit
synchronize local T:\***/japan_xmit
close
exit
Log___________
. 2009-08-17 15:52:15.359 Looking up host "XXXXXX"
. 2009-08-17 15:52:15.718 Connecting to XXX.XXX.XXX.XXX port 22
. 2009-08-17 15:52:16.265 Server version: SSH-2.0-OpenSSH_5.2p1+sftpfilecontrol-v1.3
. 2009-08-17 15:52:16.265 Using SSH protocol version 2
. 2009-08-17 15:52:16.265 We claim version: SSH-2.0-WinSCP_release_4.2.1
! 2009-08-17 15:52:34.109 Using username "jparms".
. 2009-08-17 15:52:34.562 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-08-17 15:52:34.562 Using stored password.
. 2009-08-17 15:52:34.734 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-08-17 15:52:34.734 Disconnected: Unable to authenticate
Any help is appreciated. The info is below ... Ip and usernames redacted for obvious reasons.
Script_________
option batch off
option confirm off
open sftp://user:PWD@server -timeout=30
cd /***/japan_xmit
synchronize local T:\***/japan_xmit
close
exit
Log___________
. 2009-08-17 15:52:15.359 Looking up host "XXXXXX"
. 2009-08-17 15:52:15.718 Connecting to XXX.XXX.XXX.XXX port 22
. 2009-08-17 15:52:16.265 Server version: SSH-2.0-OpenSSH_5.2p1+sftpfilecontrol-v1.3
. 2009-08-17 15:52:16.265 Using SSH protocol version 2
. 2009-08-17 15:52:16.265 We claim version: SSH-2.0-WinSCP_release_4.2.1
! 2009-08-17 15:52:34.109 Using username "jparms".
. 2009-08-17 15:52:34.562 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., Password: )
. 2009-08-17 15:52:34.562 Using stored password.
. 2009-08-17 15:52:34.734 Prompt (5, SSH server authentication, Using keyboard-interactive authentication., <no prompt>)
. 2009-08-17 15:52:34.734 Disconnected: Unable to authenticate