Topic "open Server with Host key with Winscp Scripting does not wor"

Author Message
Sowmya
[View user's profile]

Joined: 2010-08-03
Posts: 10
Location: Bangalore
Hi,

I am using winscp scripting feature to connect to a cluster(linux) from a vb.net application on windows. I have added the below code to always connect to teh server with the host key. the below code worked pretty well for me and other with the vb.net exe and winscp installed on their machines.

open servername -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" and it worked pretty well and asked for the userid and password and so on.

Now ,there is one user, having a problem to connect to the server using the vb.net exe. In the program, I check in the registry for the actual location of Winscp on teh users machine and then run it with the open commnad below.

open servername -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
it works fine for most of them but this user sits in europe running this application.I he gets this error even with correct userid passwrd.
"server host key not detected in teh Cache"
I am wondering if there is a language difference issue here in detecting the host key?
Coudl you please let mek now iwhat could be the problem here.It s going on production in a day, an urgent issue to be resolved. You help will be highly appreciated.

Tahnks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
No, there's no language difference. Is the user the same hostkey in the confirmation prompt and you are?
_________________
Martin Prikryl
Sowmya
[View user's profile]

Joined: 2010-08-03
Posts: 10
Location: Bangalore
Yes. The host key is the same as mine.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Can you post script, with host key unveiled (it is not secret, it public key after all). And also the message prompt your user is getting?
_________________
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