Command line using private key
FYI - this works fine using the GUI interface. fails when I try and run it in batch mode.
Here is my command:
Here is the results:
Last thing, how do I have it automatically get my file once it's connected?
thanks
quit
Here is my command:
c:\pce\winscp.com scp://macsql2@www.pcesystems.com /privatekey=private.ppk
C:\PCE>c:\pce\winscp.com scp://macsql2@www.pcesystems.com /privatekey=private.ppk /script=c:\pce\script.txt Automatic actions are disabled when URL address is provided on command-line. Searching for host... Connecting to host... Authenticating... Using username "macsql2". Authenticating with public key "rsa-key-20100127". Authenticated. Starting the session... Connection has been unexpectedly closed. Server sent command exit status 1. Error skipping startup message. Your shell is probably incompatible with the app lication (BASH is recommended).
script.txt
example:
get datamactest.zip
quit