前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用SSH命令行远程登录运行在CloudFoundry上的应用

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

作者头像
Jerry Wang
发布2019-06-01 14:03:30
7030
发布2019-06-01 14:03:30
举报

版权声明:本文为博主汪子熙原创文章,未经博主允许不得转载。 https://jerry.blog.csdn.net/article/details/90724273

当我试图用如下命令行采用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

之后重启应用:

问题解决。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019年05月31日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档