当我试图用以下命令行采用SSH远程登陆到运行在CloudFoundry环境下的应用时,ssh
cf ssh -N -T -L 9229:127.0.0.1:9229 jerry-demo-server
遇到这个错误消息:spa
ssh: unable to authenticate, attempted methods [none password], no supported methods remain
https://stackoverflow.com/que...命令行
https://pvtl.force.com/s/arti...server
使用命令行查看个人这个应用的ssh-enabled标志位:rem
cf ssh-enabled jerry-demo-server
发现处于disabled状态:get
因而用命令行将这个标志位打开:it
cf enable-ssh jerry-demo-serverio
cf ssh-enabled jerry-demo-serverclass
cf enable-ssh jerry-demo-server登录
以后重启应用:
问题解决。
要获取更多Jerry的原创文章,请关注公众号"汪子熙":