[RA FTP] known_hosts not found or access denied for sftp connections

Document ID : KB000093783
Last Modified Date : 09/05/2018
Show Technical Document Details
When configuring (RA) FTP job, sftp connections could not be resolved, error message:
java.io.FileNotFoundException: C:\Windows\system32\config\systemprofile\.ssh\known_hosts (access denied)
SFTP requires the hosts information to be written as entries into the known_hosts file at the connection establishment.
On Windows OS, path of the file depends on architecture of JVM that starts the agent, usually:
If the file does not exist at the destination location, above error happens, this is not a bug or error within Automation Engine
Create a blank known_hosts file (without extension) in the destination folder of the server (C:\Windows\system32\config\systemprofile\.ssh\) solved the issue.
This would let sftp session to continue by appending hosts information.
The file created does not need to contain any piece of information at initiation.