Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Sylo

Sometimes I wonder how I still have a job....


That was it. Thanks.
martin

Re: SFTP - Too many parameters for command 'open'

You are missing = after the -passphrase.
Sylo

SFTP - Too many parameters for command 'open'

option echo off

option batch on
option confirm off
open sftp://username:xxxxxxx@ftpsite.net/ -hostkey="ssh-rsa blah blah" -privatekey="V:\SFTP_Files\Key\odi_key.ppk" -passphrase "passphrase"
lcd "\\server\g$\SFTP_Data"
put -nopremissions -preservetime *.txt
exit


I having an issue when creating a batch file to upload files in network share. When I use the script above I get "Too many parameters for command 'open'" error or if I take out the -passphrase part it crashes when running it then gives me the message:

Authenticating with public key "imported-openssh-key".
Passphrase for key 'imported-openssh-key':

I am really struggling to get this to work. Any advise would be greatly appreciated.

Thanks