Topic "winSCP.com OPEN Command"

Author Message
iradamson
[View user's profile]

Joined: 2013-10-08
Posts: 3
Location: UK
If I use the open command from the command line to connect to a server for the first time (and is not therefore in the winSCP cache), the following message is displayed:

The server's host key was not found in the cache. You have no guarantee that the
server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 xx:xx:xx:xx:xx:xx:cc:xx:aa:dd:aa:ff:aa:dd:aa:aa
If you trust this host, press Yes. To connect without adding host key to the cac
he, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, C(a)ncel, (C)opy Key

Does the open command provide parameters to be able to specify 1 of the 4 responses Y,N,a or C automatically, without user intervention?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/scripting#hostkey
https://winscp.net/eng/docs/scriptcommand_open

If that does not help, come back.
_________________
Martin Prikryl
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