I am trying to install ssh tunnel on a remote server as described here: ssh from Heroku on a remote server with Mysql Db
But I hung up just trying to load the gems. I added:
# file: Gemfile ... gem 'net-ssh-gateway', '~> 1.2.0'
but when I do bundle install
(or even just gem install net-ssh
on the command line), I get:
ERROR: Could not find a valid gem 'net-ssh' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.8.gz)
According to the README for net-ssh ( https://github.com/net-ssh/net-ssh ), I checked my OpenSSL bindings for Ruby - they look good:
$ ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION' OpenSSL 1.0.1j 15 Oct 2014
I'm not sure if this is related, but when I tried to download the .pem file to download the high security gemfile:
$ curl -O https://raw.github.com/net-ssh/net-ssh/master/gem-public_cert.pem
... he did not download the .pem file, and visiting the URL directly leads to "not found".
Additional Information:
$ rake about About your application environment Ruby version 2.1.4-p265 (x86_64-darwin14.0) RubyGems version 2.2.2 Rack version 1.5 Rails version 4.1.7
So right now, I'm stuck. Does anyone know this problem?
source share