How to make winscp automatically accept server host key?
I'm writing a script to transfer data via winscp using its powershell functionality.
I need to use SFTP and automatically accept host key fingerprint on first connection and on all further ones, no matter what is the value.
How do I script that, pls?
When I write a script without specifying hostkey, it throws this back at me:
Exception calling "Open" with "1" argument(s): "SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.HostKey is not set."
I need to use SFTP and automatically accept host key fingerprint on first connection and on all further ones, no matter what is the value.
How do I script that, pls?
When I write a script without specifying hostkey, it throws this back at me:
Exception calling "Open" with "1" argument(s): "SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.HostKey is not set."