Skip to Content
avatar image
Former Member

Run SSH commands on cloudfoundry / SAP CP

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

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

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09 at 11:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09 at 04:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded