Re: 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
Thanks, It works now.
I was putting the hostkey switch on the command line like /console etc.