使用SSH命令行远程登录运行在CloudFoundry上的应用
2023-09-14 09:03:51 时间
当我试图用如下命令行采用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命令行管理文件
- [AWS] SSH into EC2 instanse
- ssh隧道 的命令行和 sshd 服务的配置(gatePort)
- VMware ESXi 6.7主机启用 Shell 及 SSH 服务
- centos6.x 抓取ssh登录的用户名和密码
- 介绍3种ssh远程连接的方式
- mac ssh无法连接服务器
- ubuntu 16.04.7 LTS 开启ssh默认关闭ROOT账户远程密码连接
- SSH-Auditor:一款SSH弱密码探测工具
- 防御暴力破解SSH攻击
- 华为交换机SSH报错Socket error Event: 32 Error: 10053. Connection closing...Socket close.
- 华为交换机用命令更改已有admin账户开启SSH
- 防止暴力破解ssh的四种方法
- Git生成SSH共钥
- chrome插件系列一:Secure Shell(替代ssh客户端)
- Redis未授权访问漏洞(四)SSH key免密登录