Topic "Hostkey command"

Author Message
rocheuser
[View user's profile]

Joined: 2008-06-10
Posts: 1
Can someone provide an example of using the hostkey command line option within a script.

I've been working with this for 2 days and am not getting anywhere.

I'm using version 4.0.7

I have tried the SshHostKeys and Configuration\CDCache values from the ini file with no luck.

I have also tried the value found under Server host key Fingerprint on the Server and Protocol information screen,
Advertisements
bertv

Guest


I used this to transfer files
=============================
option batch on
option confirm off
open sftp://username:password@55.10.1.21:22 -hostkey="ssh-rsa 1024 e9:8d:64:40:1e:5f:cee9:8d:64:40:1e:5f:ce"
option transfer binary
put -delete C:\temp\* ./outgoing/
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Hostkey option is supported since 4.1.x only.
_________________
Martin Prikryl
Guest




bertv wrote:
I used this to transfer files
=============================
option batch on
option confirm off
open sftp://username:password@55.10.1.21:22 -hostkey="ssh-rsa 1024 e9:8d:64:40:1e:5f:cee9:8d:64:40:1e:5f:ce"
option transfer binary
put -delete C:\temp\* ./outgoing/
close
exit


Thanks, It works now.

I was putting the hostkey switch on the command line like /console etc.
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