Skip to Content
0

Run SSH commands on cloudfoundry / SAP CP

Sep 14, 2017 at 12:41 PM

215

avatar image
Former Member

Hello,

I am currently working in us1.hana.ondemand.com under a space for which ssh is allowed:

- cf ssh-enabled APP
ssh support is enabled for 'APP'

- cf space-ssh-allowed SPACE
ssh support is enabled in space 'SPACE'


But I am not able to run commands like cf ssh : Error opening SSH connection: dial tcp 52.XX.XXX.XXX:2222: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I would like to know if it is allowed or not to remotely execute commands using ssh tunnels. I would like to enable some debugging options and remote monitoring on non productive applications.

I was not able to find documentation other than from the cloudfoundry documentation itself.
Could you please confirm if I should be able to create that technical tunneling or if it is not supported/allowed and there is no need I investigate further in this area ?

Many thanks.

Guillaume

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

3 Answers

avatar image
Former Member Nov 22, 2017 at 03:48 PM
0

I´m have the same situation to access the HANA DB (hanatrial) service in SCP Cloud Foudry. Did you able to connect with ssh?

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Apr 09 at 11:48 AM
0

Hello Colleagues,

Did you find any solution for this issue.

I am facing exactly same issue. Please guide me if you found any solution.

Regards,

Arpita

Share
10 |10000 characters needed characters left characters exceeded
Morten Wittrock
Apr 09 at 04:06 PM
0

Hi Guillaume

The cf ssh command lets you SSH into a container instance of a specific application deployed to Cloud Foundry. That's what you're trying to do, right?

I've had trouble SSHing to a container a couple of times, and I've had some success with restarting the application with cf restart APP-NAME after enabling SSH for that particular application with cf enable-ssh APP-NAME.

Regards,

Morten

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

Hi Morten,

Yes I am doing cf ssh <appname> into a container instance of a specific application deployed to Cloud Foundry.

The command works when I do it from my system. But when I am trying do this from a VM machine then it fails with the error - Error opening SSH connection: dial tcp XX..XX.XXX.XXX:2222: connectex:

I want to debug the application after opening a tunnel using cf ssh <appname>. Debugging works fine for Waldorf colleagues. But if we try from Bangalore location then there is some issue. That's why I was trying cf ssh on a VM machine located in Waldorf.

Thanks & Regards,

Arpita

0

Ah, I see. That sounds like a network connectivity issue to me, since you're able to SSH into the same container from your own machine.

0