A customer on 23R1 has an IFS integration with Pagero and they send invoices via SFTP. For the SFTP to work, they need to have a known hosts file created on the IFS App server, which was no problem for Apps 10 on Windows; however, they do not know how to get it accomplished on the Cloud Linux app server. Pagero does not have the expertise in-house to help with this and the IFS document for Pagero Cloud does not reference it. They are looking for help on the Linux side to create the file. Is there any documentation or advice for this? Â
Hi
check for this in the above link :
java -cp \ifs-fnd-connect.jar;\jsch-0.1.55.jar ifs.fnd.connect.ftp.SftpClient -CreateKnownHosts=KNOWNHOSTS -hostname=SFTPHOST -username=USERNAME -password=PASSWORD
(replace '\' with '/' and ';' with ':' on Linux).
Also, there is a community post which can be helpful in your caseÂ
Hope it helps!
Â
Regards,
Anil
Hello cmdriordan,
In this IFS documentation page you will find help on how to generate a knownhosts file.
It’s done through a java command line, so independantly from OS Windows or Linux.
Hope this helps.
Â
..and if the java prompt seems complicated, you can also do it with any ssh from where the site is connectable.
Just open a command prompt (Start - Run -  cmd  ÂENTER] ) , type
sftp my.pagero.host  (substituting the actual address)
 - answer yes to the question to accept and save the key
CTRL-C because you didn’t want to connect further
The key is now written to c:\Users\YOURACCOUNT\.ssh\known_hosts
Type or notepad this file to see if there are any other hosts - make a copy and cleanup in that case.
This file should now work as your IFS Cloud known_hosts file as well.
Note! The cloud wants the file to end in .txt , so you need to rename it to known_hosts.txt (the actual filename doesn’t matter).
Now that was a lot of text, which is actually simpler..? I find this easier.
Thank you all for your quick responses!  Based on the answers to this post, the customer connected to the SFTP site on a different machine, which generated a known hosts file. They were able to use that for IFS Cloud and it worked. Then, decided to try the same file from Apps 10 and it also worked. They had to add the Destination Address on the Routing Rule in Cloud as well to get it to work since that didn’t come through from Apps 10.
Some additional info from the customer that they discovered:
1) The known hosts file does not need to be created while on the actual IFS app server as it does not appear to be server-specific.
2) The java command in the documentation to create the file is not required.
3) The known hosts file from IFS Apps 10 works for Cloud as well.
Â
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.