Skip to Content

SFTP - Known Host File Creation

Hi Experts,

I am working on one integration scenario with Success Factor to third party SFTP server through Cloud Platform Integration(HCI). For SFTP SSL Connection we need to deploy known_host file in Cloud Platform Integration.

I am using Cygwin terminal in my case for creating Known_host file and using command ssh-keyscan hostname/ip address -> filename. By using this command I am able to create known_host file but it is creating blank, as I tried it with internal SFTP server it was created successfully.

Can anyone suggest me the exact solution for this?

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 25, 2017 at 12:38 PM

    Hi Experts,

    My Issue is now resolved. :)

    Thanks Sriprasad for you help!

    Regards,

    Pravesh Shukla

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 22, 2017 at 11:13 AM

    Hello Pravesh,

    Please follow the steps mentioned in below thread.

    https://answers.sap.com/questions/28265/hci-know-hosts-file.html

    1: Install opensshd

    2: Check whether installation is successful or not by running the command.

    ssh -V

    3: Run the command.

    ssh-keyscan -t rsa sftpXX.successfactors.com

    And from my observation if you are trying from office location ( many times ) it wont work because of security reasons.It works very well if you are running the command from outside your office network.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sriprasad,

      Thanks for the help!

      I performed all activities as you mentioned above, PFB snapshot, Am I missing something?

      Still I am getting blank file after running ssh-keyscan -t rsa ip/host.com in Cygwin, I am even unable to ping this IP address through command prompt. Please suggest me.

      Thanks!

      Pravesh Shukla

      snapshot.jpg (28.2 kB)
  • Sep 25, 2017 at 07:32 AM

    Hello Pravesh,

    It is not required to run this command in CYGWIN, why dont you try it in Command prompt.It should work.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Pravesh Shukla Sriprasad Shivaram Bhat

      Sriprasad - Yes it is third party server, and I have to generate known_host file for SSL connection between SFTP server and Cloud Platform Integration (HCI). After creating known host , will have to deployed it on tenant.

      But known host file is creating blank.

      Regards,

      Pravesh

  • avatar image
    Former Member
    Oct 02, 2017 at 06:48 AM

    Hello Sriprasad,

    I have tried this with a separate client and I get the following error

    "no hostkey alg"

    Kindly advise

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Syed,

      You can simply create the known_host using HCI WebUI/Eclipse.

      1. In WebUI go to Operations view -> Connectivity tests -> Select SSH tab

      2. Enter Host (without SFTP prefix) and port details and choose authentication as none.

      3. Once you click on send button , you can view the response.

      4. Click on copy Host key , and save the content in a file and deploy the known_hosts(SSH) file within Security Material tab.

      SS attached.

      Hope this works.

      ssh.jpg

      ssh.jpg (38.6 kB)