Verifying the host key through scripting not working
Hi,
I am using winscp scripting feature to connect to a cluster(linux) from a vb.net application on windows. I realised that for the first time only the host key for the server needs to be verified through scripting. I used the command
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 ,I close this session and open a new winscp session and gave a command
open servername
This does pop up a message "The server's host key was not found in teh cache" . Could you please let me know if this key is not registered yet on teh server. Should we give this key each time we log in ?
Also how to we give the certificate option here?
I tried giving teh command open ctnheng1 -certificate="=ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
It did give a unrecognised command err.
Could you pelase help me on this .Its urgent.
Thanks for a wonderful tool.
I am using winscp scripting feature to connect to a cluster(linux) from a vb.net application on windows. I realised that for the first time only the host key for the server needs to be verified through scripting. I used the command
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 ,I close this session and open a new winscp session and gave a command
open servername
This does pop up a message "The server's host key was not found in teh cache" . Could you please let me know if this key is not registered yet on teh server. Should we give this key each time we log in ?
Also how to we give the certificate option here?
I tried giving teh command open ctnheng1 -certificate="=ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
It did give a unrecognised command err.
Could you pelase help me on this .Its urgent.
Thanks for a wonderful tool.