Topic "auto answer host key question in a script"

Author Message
[View user's profile]

Joined: 2013-03-06
Posts: 1
Location: Atlanta, GA
am trying to build a script so I can execute this under the task scheduler on the win server.
when I execute the 'open', winscp shows my the server fingerprint and then ask me if I trust this host enter 'Y'es,'N'o, C'a'ncel or 'C'opy and it automatically selects 'a' for cancel. How can I get the 'N' accepted or even skip over this question.
========== example
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 49:f7:11:87:19:a4:9c:5d:9b:cc:88:34:40:ba:5b:87
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection
ss Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
Duplicate post:
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License