开放端口转发 [英] Openshift Port forwarding
问题描述
我配置了ssh和succes!
$ b
现在我喜欢配置与TOAD连接的portforwarding。
我使用这种方式:
我试图降级ssh,但它没有改变任何东西。
有人知道我做错了什么吗?
此致Brecht
您可能正在使用net-ssh gem的测试版。您需要安装net-ssh版本(2.9.2),并删除2.9.3-beta1。
您可以看到您的net-ssh gem版本使用以下命令:
gem list net-ssh
$ p
结果应该如下所示:
$ gem list net- ssh
***本地GEMS ***
net-ssh(2.9.2)
net-ssh-gateway(1.2.0)
net-ssh-multi(1.2.0)
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
解决方案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)
这篇关于开放端口转发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!