當我試圖用以下命令行採用SSH遠程登陸到運行在CloudFoundry環境下的應用時,ssh
cf ssh -N -T -L 9229:127.0.0.1:9229 jerry-demo-server命令行
遇到這個錯誤消息:3d
ssh: unable to authenticate, attempted methods [none password], no supported methods remainserver
https://pvtl.force.com/s/article/SSH-to-a-Container-Fails-with-ssh-handshake-failed-Error-Messagerem
使用命令行查看個人這個應用的ssh-enabled標誌位:get
cf ssh-enabled jerry-demo-serverit
發現處於disabled狀態:io
因而用命令行將這個標誌位打開:登錄
cf enable-ssh jerry-demo-server
cf ssh-enabled jerry-demo-server
cf enable-ssh jerry-demo-server
以後重啓應用:
問題解決。
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":