Insights Hub How to SSH to the CF application using Putty?

2023-03-03T08:27:00Z
Developer Tools

Summary


Details

I am unable to log in to the app via SSH.

SSH is enabled for space as well as for the application and I was able to generate ssh-code but getting access denied error. The same functionality was working before.


Could you please help us to resolve the issue ?. Attached is the error message below.

Solution

Please check the CF version it should be about 7 versions once you update the Cloud Foundry CLI next step try to use process guid so that you can connect via process guid.

 To get the process guid below are the steps.

  1. cf7 app APP-NAME --guid (you will get the guid of the app. pass that guid to step 2.)
    1. cf7 curl /v3/apps/2f822c09-218f-4c89-bf82-ce4bafd8818f/processes
      1. In the output from 2, you search for type web and the guid related to it

      2. ssh -p 8443 cf:2510d4e3-2da3-4637-860c-195a44c34c9d/0@ssh.cf.eu1.mindsphere.io
      3. generate the ssh-code using "cf7 ssh-code" and past that where it is asking for a password.
      4. you can do the SSH using putty as well.

        use the below command to SSH via putty

        1. putty -ssh -P 8443 cf:2510d4e3-2da3-4637-860c-195a44c34c9d/0@ssh.cf.eu1.mindsphere.io
          1. the SSH connection will open via putty and it will ask for the password.
            1. get the password/ssh-code using "cf7 ssh-code" and past it (Shift+Insert). 
              1. now you can see the successful connection.

                 

                Notes

                https://developer.mindsphere.io/paas/paas-cloudfoundry-ssh.html

                For any questions or support in this matter, contact us through the support center.

                KB Article ID# PL8613749

                Contents

                SummaryDetails

                Associated Components

                Cloud Foundry Developer Tools - Other