Private key in the automation script

Advertisement

Kryst
Joined:
Posts:
3
Location:
UK

Private key in the automation script

Hello everyone
I need to prepare an automation script which will be sending files between 2 servers.
2nd server has username and public key set up. How to preapare a proper script with a private key ?

This is working fine when only used username and password
option batch abort
option confirm off
open sftp://USERNAME:PASSWORD@REMOTE IP ADDRESS
synchronize remote E:\data\remote\live\outgoing /toINC
exit

How it will be looking with PRIVATE KEY ?
Details:
USERNAME
REMOTE IP
PRIVATE KEY
SFTP/22

Can you help ?
Thanks
Kryst

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum