Hostkey command

Advertisement

rocheuser
Joined:
Posts:
1

Hostkey command

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,

Reply with quote

Advertisement

bertv
Guest

script using hostkey to transfer file

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,266
Location:
Prague, Czechia

Re: script using hostkey to transfer file

Hostkey option is supported since 4.1.x only.
_________________
Martin Prikryl

Reply with quote

Guest

Re: script using hostkey to transfer file

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.

Reply with quote

Advertisement

You can post new topics in this forum