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 ?
Can you help ?