Skip to main content
Question

IFS Cloud - SFTP interface

  • August 11, 2025
  • 8 replies
  • 188 views

paguin
Hero (Partner)
Forum|alt.badge.img+12

Hello Interface Champions,

I have a 3rd party who gives acess to connect for data exchange/sftp only thru public ip. The public ip of my appliction server is defined and is allowed by third party. (I have generated private/public key) and public key is shared with 3rd party. i am able to connect to the 3rd party server using sftp from my middle tier server.

Now IFS Sender. to generate Knownhost file i need username or public key from 3rd party which i dont have. so  i have generated knowhost file from middle tier server using ssh-keyscan.

But I am not able to send file to third party from IFS and getting following error

ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Error during file sending Caused by: com.jcraft.jsch.JSchException: reject HostKey: [P2Pxxxst.xxxxxx.co.za]:6022

can some one share process to generate knowhost file without username/password/public key

 

regards

Pankaj

8 replies

Forum|alt.badge.img+9
  • Sidekick (Employee)
  • August 11, 2025

You don’t really need an username, you can just make something up - as it doesn’t really need to login.
Even if the login is failed you’ll get the knownhost key.

Another way is to use some other SSH software if you can’t run Java, and dig the key out of their files.
You will of course need some understanding of how a known_hosts file is built - and IFS Cloud will only accept it with a .txt extension so it has to be renamed.

In your middle tier Linux server the key would be located in the .ssh hidden folder.
Just login to the middle tier and do
cat .ssh/known_hosts

.

You can either copypaste the key into a text file , or get the key file for example to the management server with something like
(from Windows command prompt)
scp ifs@my-mt-server.com:/home/ifs/.ssh/known_hosts .

(the last dot is needed if I recall right)


paguin
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • August 11, 2025

Hello ​@SamiL ,

I m actually following the same thing. using ssh-keyscan from ubuntu server. 

using following command 

ssh-keyscan -p 6022 P2Pxxxst.xxxxxx.co.za >> ~/.ssh/known_hosts

then created a knowhost.txt file and upload in sender. 

send the message is send to 3rd party then getting following error message 

ifs.fnd.connect.senders.ConnectSender$TemporaryFailureException: Error during file sending Caused by: com.jcraft.jsch.JSchException: reject HostKey: [P2Pxxxst.xxxxxx.co.za]:6022

Please suggest

Regards

Pankaj


maheshmuz
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • August 11, 2025

According to IFS guidelines, IP addresses cannot be used for setting up IFS Connect. They recommend using the fully qualified domain name (FQDN) instead. 


paguin
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • August 11, 2025

Hello ​@maheshmuz ,

FQDN is used.

regards

Pankaj


maheshmuz
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • August 11, 2025

Based on my experience, you need to have at least the hostname  (FQDN)  and the username to properly generate the knownhosts file for it to work correctly in the application.


Forum|alt.badge.img+9
  • Sidekick (Employee)
  • August 11, 2025

Please check the encryption used on the host key (it says that in plain text inside the file).
Not all encryptions are supported by IFS Cloud.
This also depends on your IFS Cloud version. See for example 

 


paguin
Hero (Partner)
Forum|alt.badge.img+12
  • Author
  • Hero (Partner)
  • August 11, 2025

Hello ​@SamiL ,

the error is not related to encryption.

@maheshmuz  Knownhost file contains FDQN

 

regards

Pankaj


Forum|alt.badge.img+17
  • Superhero (Partner)
  • August 11, 2025