RSA host key usage for .NET assembly
Is it possible to use the cached RSA key while using the .NET assemblies instead of using the WinSCP.sessionoptions parameters?
I have the RSA key already cached and using the scripting methods work, but when I tried to use the .NET assemblies in Powershell, it doesn't seem to read the WinSCP.ini file.
I can't have the key hard coded in my script or an xml file.
I can't use this option - SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
Is there a WinSCP.sessionoptions parameter that defines the location of the WinSCP.ini so it reads the cached key?
thanks
I have the RSA key already cached and using the scripting methods work, but when I tried to use the .NET assemblies in Powershell, it doesn't seem to read the WinSCP.ini file.
I can't have the key hard coded in my script or an xml file.
I can't use this option - SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
Is there a WinSCP.sessionoptions parameter that defines the location of the WinSCP.ini so it reads the cached key?
thanks