What is the simplest way to access the Cloud Foundry application container using WinSCP?

The way I know, I need following steps:

  1. Login / Target
    cf login
    cf target -o app-org -s app-space
  2. Retrieve and display the given app's guid

    cf app pef-sso-server-dev --guid
  3. Get a one time password for ssh clients

    cf ssh-code
  4. Establishing a connection

    • hostname: <my-app>.<my-domain>
    • port: 2222
    • username: cf:<app-guid>/<app-instance-index>@ssh.<my-domain>
    • password: <ssh-code>

Could we just use CF CLI to create SSH tunnel and connect WinSCP to local forwarded port without re-authentication?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.