Passwordless acess
My client doesn't allow normal FTP anymore and will only allow SFTP without password I am passing the following command script files but it doesn't seem to work still asks me for password
options batch abort
option confirm off
open prcdsafe@10.217.xx.xx -hostkey="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1yM/SKgnB8RZUUg4QorK4FqHq0kmySQUVMXJoOFbDWLUMWX3SUdeg7aAY+VhRDZxDl9hyAN6/9NXpPwXjGVcbljgBoXYTJm1f1H3EO77XkCBSm7WJuwXxWwEpnaKf48R42oIv0VJi5z9cOPDLdyPf4xMIoeo4w== datasafe@flplanoptcm4"
lcd C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\
CD ../..
CD /var/opt/ericsson/nms_umts_wran_bcg/files/import
put C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\2011-10-06_11192508_BLRNC1_DATASAFE.BLRNC1
close
exit
----------------------------------------------------------------------
C:\Documents and Settings\datasafe>winscp.com -script="C:\tmp\FTPScript.txt"
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Access denied.
Authentication log (see session log for details):
Using username "prcdsafe".
Access denied.
Access denied.
Access denied.
Access denied.
Authentication failed.
C:\Documents and Settings\datasafe>winscp.com stp -script="C:\tmp\FTPScript.txt
"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "prcdsafe".
Authentication failed.
C:\Documents and Settings\datasafe>winscp.com stp//:prcdsafe@10.217.196.80 /script="C:\tmp\FTPScript.txt"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
options batch abort
option confirm off
open prcdsafe@10.217.xx.xx -hostkey="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1yM/SKgnB8RZUUg4QorK4FqHq0kmySQUVMXJoOFbDWLUMWX3SUdeg7aAY+VhRDZxDl9hyAN6/9NXpPwXjGVcbljgBoXYTJm1f1H3EO77XkCBSm7WJuwXxWwEpnaKf48R42oIv0VJi5z9cOPDLdyPf4xMIoeo4w== datasafe@flplanoptcm4"
lcd C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\
CD ../..
CD /var/opt/ericsson/nms_umts_wran_bcg/files/import
put C:\DOCUME~1\DATASA~1.000\LOCALS~1\Temp\4\2011-10-06_11192508_BLRNC1_DATASAFE.BLRNC1
close
exit
----------------------------------------------------------------------
C:\Documents and Settings\datasafe>winscp.com -script="C:\tmp\FTPScript.txt"
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Access denied.
Authentication log (see session log for details):
Using username "prcdsafe".
Access denied.
Access denied.
Access denied.
Access denied.
Authentication failed.
C:\Documents and Settings\datasafe>winscp.com stp -script="C:\tmp\FTPScript.txt
"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password:
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "prcdsafe".
Authentication failed.
C:\Documents and Settings\datasafe>winscp.com stp//:prcdsafe@10.217.196.80 /script="C:\tmp\FTPScript.txt"
Searching for host...
Network error: Connection refused.
Unknown command 'options'.
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "prcdsafe".
Using keyboard-interactive authentication.
Password: