ssh-tunnel

SSH tunneling from Heroku

一个人想着一个人 提交于 2019-11-27 10:57:48
I'm providing a service hosted on Heroku which lets users report on their own data, using their database. My customers have to connect my Heroku app to their database. Some of them are obviously afraid of letting data transit in clear over the Internet. Is it possible with Heroku to open an SSH tunnel from my app (Play Framework/Java) to their machines? NB: I'm aware of SSH tunneling to a remote DB from Heroku? but on that question, using the built-in Heroku db was possible. Thank you, Adrien fearless_fool Yes, you can. Having now gone down this path: yes, it is possible to set up an SSH

Advance ssh config file

纵然是瞬间 提交于 2019-11-27 03:50:07
问题 How to ssh directly to Remote Server, below is the details description. Local machine ---> Jump1 ----> Jump2 ----> Remote Server From local machine there is no direct access to Remote Server and Jump2 is disable Remote Server can only be accessed from Jump2 There is no sshkegen to remote server we have to give the paswword manually. from Local Machine we access the Jump1 with ip and port 2222 then from Jump 1 we access the Jump2 with host name default port 22. With ssh/config file we were

MySQL connection over SSH tunnel - how to specify other MySQL server?

孤人 提交于 2019-11-26 23:40:48
I've got ~50 databases all set up at different host names, with the requirement that I connect to them through an SSH tunnel. For example: SSH host at ssh.example.com MySQL host at mysql1.example.com I have managed to create the tunnel using autossh (web server running Debian), but I can't seem to figure out how to connect to a specific MySQL hostname "beyond" the SSH tunnel. Typing lsof -i -n | egrep '\<ssh\>' confirms that the tunnel is working (sends port 3307 to ssh.example.com port 3306) So when I try mysql -h 127.0.0.1 -P 3307 I get Connection refused. Not too weird since it's not an

MySQL connection over SSH tunnel

醉酒当歌 提交于 2019-11-26 18:11:09
问题 I have set up a SSH tunnel between two servers A and B . B has MySQL server, and this works: mysql -h localhost -P 3306 -u user -p While this doesn't: mysql -h 127.0.0.1 -P 3306 -u user -p Although my.cnf has these lines: bind-address = 127.0.0.1 # Next addr differs slightly, but anyway bind-address = 99.99.99.99 Now about the tunnel. It connects the following: (A) localhost(9989) -> (B) localhost(3306) But when (on A , with ports forwarded) I do mysql -v -h 127.0.0.1 -P 9989 -u user userdb

SSH tunneling from Heroku

≯℡__Kan透↙ 提交于 2019-11-26 15:19:45
问题 I'm providing a service hosted on Heroku which lets users report on their own data, using their database. My customers have to connect my Heroku app to their database. Some of them are obviously afraid of letting data transit in clear over the Internet. Is it possible with Heroku to open an SSH tunnel from my app (Play Framework/Java) to their machines? NB: I'm aware of SSH tunneling to a remote DB from Heroku? but on that question, using the built-in Heroku db was possible. Thank you, Adrien

How to create SSH tunnel using PuTTY in Windows?

社会主义新天地 提交于 2019-11-26 12:39:50
问题 I need to create SSH tunnel with PuTTY in Windows, that would do the same as this command in Linux: ssh -fN -L 2000:SomeIp:2000 myusername@myLinuxBox I tried many options in PuTTY, including setting source port in GUI to \"2000\" and destination to \"SomeIp:2000\". Destination is set to local (as the -L switch suggests). I successfully login to my SSH box but port forward is not made. Is this even possible in Windows, so that all the connections made by programs that use this port (2000) will

MySQL connection over SSH tunnel - how to specify other MySQL server?

て烟熏妆下的殇ゞ 提交于 2019-11-26 08:48:01
问题 I\'ve got ~50 databases all set up at different host names, with the requirement that I connect to them through an SSH tunnel. For example: SSH host at ssh.example.com MySQL host at mysql1.example.com I have managed to create the tunnel using autossh (web server running Debian), but I can\'t seem to figure out how to connect to a specific MySQL hostname \"beyond\" the SSH tunnel. Typing lsof -i -n | egrep \'\\<ssh\\>\' confirms that the tunnel is working (sends port 3307 to ssh.example.com

SSH library for Java [closed]

眉间皱痕 提交于 2019-11-25 22:34:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does anyone know of a good library for SSH login from Java. 回答1: The Java Secure Channel (JSCH) is a very popular library, used by maven, ant and eclipse. It is open source with a BSD style license. 回答2: Update: The GSOC project and the code there isn't active, but this is: https://github.com/hierynomus/sshj