gpt4 book ai didi

ruby - rhc -ssh 无法连接到我在 openshift 中的应用程序

转载 作者:数据小太阳 更新时间:2023-10-29 08:46:52 26 4
gpt4 key购买 nike

我正在尝试执行这个命令:

c:\openshift>rhc ssh --ssh "C:\openshift" -a demo

putty.exe 在 c:\openshift 下,'demo' 是我在 openshift 中的应用程序名称。但是为什么我收到此错误消息。是不是说找不到putty.exe文件?

C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/commands/ssh.rb:44:in `ex
ec': No such file or directory - C:\openshift (Errno::ENOENT)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/commands/ssh
.rb:44:in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/commands.rb:
285:in `execute'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/commands.rb:
276:in `block (3 levels) in to_commander'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.2.0/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.2.0/lib/commander/c
ommand.rb:180:in `call'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.2.0/lib/commander/c
ommand.rb:155:in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.2.0/lib/commander/r
unner.rb:421:in `run_active_command'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/command_runn
er.rb:73:in `run!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/commander-4.2.0/lib/commander/d
elegates.rb:8:in `run!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/lib/rhc/cli.rb:37:in
`start'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rhc-1.24.4/bin/rhc:20:in `<top
(required)>'
from C:/Ruby200/bin/rhc:23:in `load'
from C:/Ruby200/bin/rhc:23:in `<main>'

最佳答案

我遇到了同样的错误。作为解决方法,我开始使用 Putty。它完美地工作:

此视频展示了如何正确设置 Putty:

https://developers.openshift.com/en/managing-remote-connection.html#download-the-putty-installer

关于ruby - rhc -ssh 无法连接到我在 openshift 中的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25322860/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com