Port Overwrite and Privatekey

Advertisement

retlacs
Joined:
Posts:
4

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum