简体   繁体   中英

Openshift Port forwarding

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

I configured ssh with succes!

SSH

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

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)

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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM