Openshift Port forwarding

99封情书 提交于 2019-12-21 05:03:06

问题


There already a lot of topics about it. But I'm stuck

I configured ssh with succes!

Now I like to configure the portforwarding for connection with TOAD. I used this tut: https://blog.openshift.com/getting-started-with-port-forwarding-on-openshift/

Now when I try rhc port-forward -a php

I get this error Could not parse PKey: no start line

I founded this: http://blog.skypayjm.com/2015/02/accessing-remote-openshifts-database.html

I tried to downgrade ssh, but it didn't change anything.

Does somebody know what I do wrong? Sincerely, Brecht


回答1:


You are probably using the beta version of the net-ssh gem. You need to install version net-ssh (2.9.2), and remove 2.9.3-beta1.

You can see what version of the net-ssh gem you are using with the following command:

gem list net-ssh

The results should look like this:

$gem list net-ssh

*** LOCAL GEMS ***

net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
net-ssh-multi (1.2.0)



回答2:


I had the same problem and was caused by the version of ruby that i had installed . I uninstalled Ruby 2.2.1 (x64) and install 1.9.3 and now works fine.

The instructions tell : install the last version. This cause me a problem with libraries and I had to install 2.9.3-beta1 to fix it but also will create a problem with "rhc fordward" command and could not fix uninstalling 2.9.3-beta1 cause provoke the library problem XD) [https://developers.openshift.com/en/getting-started-windows.html#client-tools][1]

The instructions also tell:

"If you are not sure which version to install, it is recommended to use the latest 1.9.3 installer"



来源:https://stackoverflow.com/questions/28682443/openshift-port-forwarding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!