I come accross StrictHostKeyChecking
configuration when I needed to setup sftp
communication between two servers (e.g. Windows Server ---> Linux Server). As defined here (use find for string match "StrictHostKeyChecking"):
If this flag is set to “yes”, ssh will never automatically add host keys to the ~/.ssh/known_hosts file, and refuses to connect to hosts whose host key has changed. This option forces the user to manually add all new hosts. If this flag is set to “no”, ssh will automatically add new host keys to the user known hosts files.
I want to use PSFTP.EXE
to transfer files to the Unix server from Windows machine and there is obviously no concept of ~/.ssh/known_hosts
. My question is then...what is the equivalent for StrictHostKeyChecking
for PSFTP.EXE
. Is it simple -batch
which avoids interactive prompts ?