Skip to Content
avatar image
Former Member

How to access data or files in SAP CloudFoundry environment?


I have deployed an app and binded it to a mongo instance. I would like to access db, add data etc. I tried to connect to the DB in my local machine's DB client, it said "Not reachable". I understand that the behaviour is due to security reasons.

For time being, I have deployed MongoExpress (web-based mongo client) as an app and access / add data using that. What is the ideal way to achieve that?

If possible, I would need access to terminal (SSH). How can I do that?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 26, 2017 at 02:08 PM

    Hi Kavitha,

    Yes, it is possible to access the file system via SSH. All you need is to issue the following command:

    cf enable-ssh <app_name>
    cf ssh <app_name>

    In order to gain access to the DB residing on your local machine, you will need to open a db tunnel via SSH. For that, please follow the instructions from this page:

    But if you really need to connect an application to a DB that is running on your local machine then I would recommend you looking into DB synchronization (from your local to the cloud) using other approaches like Liquibase. On HANA this could be achieved via CDS or Design Time Repository Artifacts and Database import files.


    Add comment
    10|10000 characters needed characters exceeded