Reputation: 1613
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
Upvotes: 6
Views: 2026
Reputation: 41
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"
Upvotes: 4
Reputation:
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)
Upvotes: 8