Autologin in console mode by a stored session.

Advertisement

Tobia
Joined:
Posts:
1

Autologin in console mode by a stored session.

Hello,
i'm new of winscp. I use the GUI to save all my connections to server. Now i want to make a batch file to automatize the backup, so i tried to use the /console mode.
I run my saved sessions by "winscp421.exe mysession /console" but i get a "Server sent a command exit status 0". However if i remove the /console flag: "winscp421.exe mysession" the session starts automatically with a correct authentication.
Why?
Can be something connected with private/host key? But why the stored session works with the GUI but not with console?
I also tried to set hostkey/private key in the command line, but i don't know how to get this files.

thank you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: Autologin in console mode by a stored session.

First, do not do it like that do:
/console /command "option batch on" "option confirm off" "open mysession"

Second, post a log file both for GUI session and console session.

Reply with quote

Advertisement

You can post new topics in this forum