WinSCP powershell script to confirm file exists
I have a powershell script that connect to a server via sftp
I am getting the error host key not verified
I get this error in the log
. 2014-08-01 13:52:47.987 Asking user:
. 2014-08-01 13:52:47.987 **Continue connecting to an unknown server and add its host key to a cache?**
. 2014-08-01 13:52:47.987
. 2014-08-01 13:52:47.987 The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
How can I get around this in a powershell script
thank you
I am getting the error host key not verified
I get this error in the log
. 2014-08-01 13:52:47.987 Asking user:
. 2014-08-01 13:52:47.987 **Continue connecting to an unknown server and add its host key to a cache?**
. 2014-08-01 13:52:47.987
. 2014-08-01 13:52:47.987 The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
How can I get around this in a powershell script
thank you