Topic "SFTP - Too many parameters for command 'open'"

Author Message
Sylo

Guest


Code:
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
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26705
Location: Prague, Czechia
You are missing = after the -passphrase.
Sylo

Guest


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


That was it. Thanks.
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License