cancel
Showing results for 
Search instead for 
Did you mean: 

How to bind connectivity service in BTP in Hybrid Testing

shumin
Associate
Associate
0 Kudos

Hello Colleague,

As I know to bind the connectivity service in BTP in Hybrid Testing, we need the SSH tunnel, but from https://pages.github.tools.sap/cap/docs/advanced/hybrid-testing#overwriting-service-credentials , only 

cds bind -2 my-service --credentials '{ "onpremise_proxy_host": "localhost" }'

is enough, may I know if we still need 

CF SSH

 to build the tunnel, because in our case, only add 

          "credentials": {
            "onpremise_proxy_host": "localhost"
          },

in  .cdsrc-private.json, we still meet the error 

Connection timed out: getsockopt: connectivityproxy.internal.cf.us10-001.hana.ondemand.com/52.86.131.53:20003

and in which release the command

cds bind -2 my-service --credentials '{ "onpremise_proxy_host": "localhost" }'

is available, because we meet error 

Invalid option: --credentials

Thank you very much

View Entire Topic
lothar_bender
Advisor
Advisor
0 Kudos

I can confirm that CF SSH is still required to open the SSH tunnel. The value onpremise_proxy_host was just used as a realistic example of overwriting service key credentials, but it could be any other service credential value. We will add a hint that the CF SSH command is required to avoid confusion.

The command

cds bind -2 my-service --credentials '{ "onpremise_proxy_host": "localhost" }'

will only store the given credentials locally in your .cdsrc-private.json as part of the service binding information, for later merging with the service key credentials.