Topic "How to get user prompt?"

Author Message
jbl2
[View user's profile]

Joined: 2012-03-05
Posts: 3
Hello, in using the new .NET assembly, is there a way to have it prompt the user (e.g. pop up a MessageBox) to accept the host key? Thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It is not GUI assembly. So the only thing that can be added is event that it triggered when WinSCP is veryfing the key. Only thing I fear is that people would abuse it to accept any host key.
_________________
Martin Prikryl
jbl2
[View user's profile]

Joined: 2012-03-05
Posts: 3
prikryl wrote:
It is not GUI assembly. So the only thing that can be added is event that it triggered when WinSCP is veryfing the key. Only thing I fear is that people would abuse it to accept any host key.


OK. I want WinSCP to prompt the user the first time it sees a new host key. I know how to do that from command-line, I just haven't been able to figure out how to do that directly from scripting/automation or .NET assembly. In particular it would be very convenient if this can be supported from .NET assembly. For now, I'm invoking a WinSCP command-line shell under a new Process, but using .NET assembly would be much nicer. Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This request has been added to tracker:
https://winscp.net/tracker/show_bug.cgi?id=815
_________________
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