Use SSH remote login command line applications running on the CloudFoundry

When I tried to use the following command line using SSH remote login to the application running in CloudFoundry environment,

cf ssh -N -T -L 9229:127.0.0.1:9229 jerry-demo-server

Encounter this error message:

ssh: unable to authenticate, attempted methods [none password], no supported methods remain

https://stackoverflow.com/questions/47102080/ssh-in-go-unable-to-authenticate-attempted-methods-none-no-supported-method

https://pvtl.force.com/s/article/SSH-to-a-Container-Fails-with-ssh-handshake-failed-Error-Message

Using the command line to view the ssh-enabled I flag this application:

cf ssh-enabled jerry-demo-server

Found in a disabled state:

So with the command line flag to open this:

cf enable-ssh jerry-demo-server


cf ssh-enabled jerry-demo-server

cf enable-ssh jerry-demo-server


After the restart the application:


problem solved.

For more Jerry's original article, please pay attention to the public number "Wang Zixi":

Guess you like

Origin www.cnblogs.com/sap-jerry/p/10958744.html