Post a reply

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

retlacs

Port Overwrite and Privatekey

Martin: Thank you. It worked!
retlacs

Port Overwrite and Privatekey

Hi,
How do I overwrite the port number to which I would like to connect. It defaults to port 22.
Also, how do I tell WinSCP that I have private key.
Here is my code which is not working.
cd C:\Program Files (x86)\WinSCP
winscp.exe
/log=C:\Automate\Logs\D018_FTP_To_StateStreet_%date:~-4,4%_%date:~-10,2%_%date:~7,2%.log /loglevel=0 /command "option batch abort" "option confirm off" "open sftp://<userid>:<password>@mft.stateme.com" /privatekey=C:\Automate\SSHKeys\FrontierPrivateSSHKey.ppk "port=2222" "cd /frontierCapital/toSSC" "put \\fcmcfs\daily_transactions\Client_Files\Stateme\Test\EQ_*" close "exit"

Any help is appreciated.
Thank you.