Re: keep Local Directory Upto date scipt Authentication issue
I'm not sure what you refer to by "password it returns".
But anyway, if you need to use key passphrase, you cannot just use session URL. It never contains key passphrase.
You have to edit the script to provide the passphrase using
https://winscp.net/eng/docs/library_sessionoptions#privatekeypassphrase
Or just remove the passphrase from the key.
You need to store the passphrase somewhere anyway to allow automation, what is as safe (irony) as unencrypted private key.
Better would be to use a Pageant
https://winscp.net/eng/docs/ui_pageant
See also
https://winscp.net/eng/docs/faq_passphrase
But anyway, if you need to use key passphrase, you cannot just use session URL. It never contains key passphrase.
You have to edit the script to provide the passphrase using
SessionOptions.PrivateKeyPassphrase
.
https://winscp.net/eng/docs/library_sessionoptions#privatekeypassphrase
Or just remove the passphrase from the key.
You need to store the passphrase somewhere anyway to allow automation, what is as safe (irony) as unencrypted private key.
Better would be to use a Pageant
https://winscp.net/eng/docs/ui_pageant
See also
https://winscp.net/eng/docs/faq_passphrase