使用SSH命令行远程登录运行在CloudFoundry上的应用
当我试图用如下命令行采用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/que...
https://pvtl.force.com/s/arti...
使用命令行查看我的这个应用的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的原创文章,请关注公众号"汪子熙":
相关推荐
yegen00 2020-09-10
kkaazz 2020-09-03
BraveWangDev 2020-07-19
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
annan 2020-07-18