Skip to Content
0

HCI know_hosts file

Oct 10, 2016 at 08:00 PM

747

avatar image
Former Member

Hi

I'm trying to connect to a SuccessFactors SFTP server from HCI using the SFTP adapter.

I understand that I have to add a known_hosts file in the Manage Security Material section even if I'm using User Name/Password authentication.

I installed OpenSSH on my laptop and ran the following command.

"ssh-keyscan -t rsa sftpXXX.successfactors.eu"

....and got the following response:

"# sftpXXX.successfactors.eu:22 SSH-2.0-1.82_sshlib xxxx
sftpXXX.successfactors.eu ssh-rsa AAAAB3NzaC1yc2EAAAABEQAAAQEA2rHzZK6MtRHtHwfWLba9UN8u2uy7zhBrRR/ZgTfzrLAZzINcV1DwehXJAv7OHYGAOeNEOKo4dkZ1gCoO4thfhLrkv5hlTydZuBylKpSDr0GxYIOaWKWfHVXxgCQUCAyMkopIMYQfUhcMfGBXPRLEEPqTWA1zflSf9yrJgNxL/oGZkF+40ZjeBaUPW8/JOLeWtKnh3hyxzMmw5P6OVqUl58iALGjLRcYzvELxneOgn4wTlvEenNJrANbD/9L6cDUPbfZEqTFOpLznjW68yPZ+L7f6KIDmiWXIJA2PturoSbjAvbZQU9oR8ZMtF4aAs1RsKxckjGpLyhDyTWnq3/C34Q=="

I pasted this into a text file and deployed it in HCI Manage Security

However I'm still getting the following error in HCI Monitor Message Processing:
"org.apache.camel.componant.file.GenericFileOperationFailedException:Cannpt connect to sftp://9999999X@https:22, cause: java.net.UnknownHostException: https"

Thanks

Jonathan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Oct 15, 2016 at 01:13 PM
1

Go to the URL below:

http://www.mls-software.com/opensshd.html

Follow the installation instructions and run the following command:

ssh-keyscan -t rsa sftpXXX.successfactors.eu

Copy the output Text File. It'll look something like this:

sftpXXX.successfactors.eu ssh-rsa AAAAB3NzaC1yc2EAAAABEQAAAQEA2rHzZK6MtRHtHwfWLba9UN8u2uy7zhBrRR/ZgTfzrLAZzINcV1DwehXJAv7OHYGAOeNEOKo4dkZ1gCoO4thfhLrkv5hlTydZuBylKpSDr0GxYIOaWKWfHVXxgCQUCAyMkopIMYQfUhcMfGBXPRLEEPqTWA1zflSf9yrJgNxL/oGZkF+40ZjeBaUPW8/JOLeWtKnh3hyxzMmw5P6OVqUl58iALGjLRcYzvELxneOgn4wTlvEenNJrANbD/9L6cDUPbfZEqTFOpLznjW68yPZ+L7f6KIDmiWXIJA2PturoSbjAvbZQU9oR8ZMtF4aAs1RsKxckjGpLyhDyTWnq3/C34Q==

You can now deploy this known_hosts file in HCI

Share
10 |10000 characters needed characters left characters exceeded
Sriprasad Shivaram Bhat Oct 26, 2016 at 08:52 AM
0

Hello Jonathan,

I have tried below but unable to get the key.Anything I am missing here.

I have installed below version of open SSH [ OpenSSH_7.3p1, OpenSSL 1.0.2h 3 May 2016 ]

Regards,

Sriprasad Shivaram Bhat


sap-sdn-error.png (13.0 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Sriprasad,

I have the same issue - no key is generated tried with opensshd as well as cygwin. did you figure out ?

Thanks

Chirag

0

Hello Chirag,

Now its very easier to get the same.First deploy your SFTP credentials to SAP CPI and follow the sequence maintained in the screenshot.

Post step# 8 open notepad and paste the entry which needs to be added to known_hosts file.

Regards,

Sriprasad Shivaram Bhat

0
avatar image
Former Member Oct 26, 2016 at 01:13 PM
0

Hi Sriprasad

Try running the command ssh -V

Let me know if that does the trick.

Cheers

Jonathan


Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Jonathan,

How can i get the HCI public key to import on the sftp.

Regards,

0