Hi,
I currently have a script that attempts to connect to PSFTP to run a batch script. However, I get the following when trying to connect
psftp.exe : The server's host key is not cached in the registry. You
At line:20 char:1
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 70800980918230981
Connection abandoned.
Code:
$Username = "username"
$Password = "password"
.'C:\Program Files (x86)\psftp\psftp.exe' sftpserver -l $Username -pw $Password -batch -bc -b C:\scripts\psftpfiledownload.bat
Is there a way around this?
Thanks