美文网首页SAP札记SAP 修行SAP 实用篇
使用SSH命令行远程登录运行在CloudFoundry上的应用

使用SSH命令行远程登录运行在CloudFoundry上的应用

作者: 华山令狐冲 | 来源:发表于2019-05-27 10:52 被阅读5次

当我试图用如下命令行采用SSH远程登录到运行在CloudFoundry环境下的应用时,

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

遇到这个错误消息:

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

使用命令行查看我的这个应用的ssh-enabled标志位:

cf ssh-enabled jerry-demo-server

发现处于disabled状态:

于是用命令行将这个标志位打开:

cf enable-ssh jerry-demo-server


cf ssh-enabled jerry-demo-server

cf enable-ssh jerry-demo-server


之后重启应用:


问题解决。

要获取更多Jerry的原创文章,请关注公众号"汪子熙":


相关文章

网友评论

    本文标题:使用SSH命令行远程登录运行在CloudFoundry上的应用

    本文链接:https://www.haomeiwen.com/subject/prpctctx.html