cancel
Showing results for 
Search instead for 
Did you mean: 

DB Tunnel to a HANA MDC on CF fails

former_member208449
Active Participant
0 Kudos

Hi SAP Community,

I have followed the below document to open a db tunnel for a hana db on CF environment using CF CLI -

https://help.sap.com/viewer/d4790b2de2f4429db6f3dff54e4d7b3a/Cloud/en-US/94f67ad8db754e34b28390b7bc3...

Command I used–

cf ssh -L localhost:30015:10.253.176.99:30041 CORE_DB –N

I collected host and port from the security group details for the hana db.

However, I get the below error while executing the command –

Error opening SSH connection: dial tcp: lookup ssh.cf.eu10.hana.ondemand.com: getaddrinfow: No such host is known

Kindly help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Szabolcs_Renyo
Advisor
Advisor
0 Kudos

Hi G B,

In case you are using trial environment check the following question:
https://answers.sap.com/questions/322529/error-when-connecting-to-hana-trial-instance-from.html

If not:

Have you restarted the application after the tenant database was created? Otherwise you cannot use the mentioned command.

Best regards,
Szabolcs

former_member208449
Active Participant
0 Kudos

Hi,

I am not on a trial environment. Which is the application that I need to restart?

Szabolcs_Renyo
Advisor
Advisor
0 Kudos

Hi,

this is the generic format of the command you referred in your question:

cf ssh -L localhost:30015:<host>:<port><application_name>-N

As you can see you had to provide the application name as well. In your case it is "CORE_DB".

Best regards,
Szabolcs