Java Error with RA-FTP Agent and SFTP on Windows

Discussion created by Karin_Wasinger_8156 on Jan 30, 2017
Latest reply on May 3, 2018 by ScottSilvester606020

It might happen that the following error is shown in Reports or Logfiles with a 32-bit Java version in use:

Using hosts file = C:\Windows\System32\config\systemprofile/.ssh/known_hosts

java.io.FileNotFoundException: C:\Windows\System32\config\systemprofile\.ssh\known_hosts (The system cannot find the path specified)


Java is searching at the wrong path.
The Agent was once started with a 64-bit version of the JVM therefore Java search for the file in the system32 folder instead of the SysWOW64 folder.
The path is set and located from the JVM and not from Automic. 

Create the file path in the SysWOW64 folder to make it work again:

Please refer to https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html (user.home).