Posted: 2016-06-27 15:44
I try to automate a sftp connection with a batch script, that is no problem using the user and pwd in clear text. But I can't do that.
So my idea was to configure a sessions, and open the saved session in cli, because in the ini-file the password is "hashed".
Yes I tried the "search" and yes I need the command in cli.
I tried winscp.com /ini="C:\scripts\config.ini"
then I have to open the connection to the site, but how can I say winscp to open the connection in the saved ini file?
I think it is very easy, but I didn't find a solution, perhaps it is to easy.
Hope for some good answers, thank you.
Sorry for that: it was very very easy.
after typing winscp.com /ini="C:\scripts\config.ini"
and that's it.
Location: Prague, Czechia
Your solution is correct for your specific approach.
For alternatives to protecting the credentials, see:
You can post new topics in this forum
And it's free!