Topic "Console mode when first logging into a host"

Author Message
Yang Dong

Guest


Ordinarily WinSCP will prompt us whether we trust and save the security key data of the server when we login the server the first time. This is not a problem for normal console mode usage, while if we need to operate some new hosts with batch scripts, it's a big trouble, because WinSCP will still prompt whether to trust those untrusted servers even in batch mode, and we have no option to let WinSCP choose to trust the host, it can only abort the job. Is it possible that we can explicitly tell WinSCP trust the untrusted hosts and save their security key automatically? Currently we must login every new host manually and tell WinSCP to trust them, before we can operate with them using batch scripts. This is extremely annoying for automation works.
Thanks!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
See https://winscp.net/eng/docs/scripting#hostkey
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License