ssh-tunnel

SSH Tunnelier Rock Mongo - connect to EC2 from win7

邮差的信 提交于 2020-01-06 08:09:17
问题 I am trying to SSH tunnel into my EC2 instance so that i can use Rock Mongo as my dB client. I've tested the mongodb on AWS and it seems to be working fine, now if i could only connect using the client. Here are my settings from Tunnelier an excerpt from Rock Mongo's config.php $MONGO["servers"][$i]["mongo_name"] = "AWS"; $MONGO["servers"][$i]["mongo_host"] = "127.0.0.1:3000"; $MONGO["servers"][$i]["mongo_port"] = "27018"; $MONGO["servers"][$i]["control_users"]["admin"] = "admin"; $i ++; and

How can I programmatically connect to a remote database server that requires an SSH tunnel?

我们两清 提交于 2020-01-01 16:59:09
问题 I'm working on an ETL using C# in which extracts data from a remote MySQL database that requires an SSH tunnel to connect. I currently have it working such that I first create my SSH tunnel manually using PuTTY and then programmaticly connect to the database normally using a MySqlConnection object, etc. How can I programmatically create the SSH tunnel using C#/.NET? Are there any libraries for doing this and/or is anything built into the .NET framework itself that would aid me in doing this?

Access Git repo via SSH tunnel

给你一囗甜甜゛ 提交于 2019-12-31 09:44:14
问题 I have access to an SSH account that can access a GIT server and am able to clone/push/pull the repo in this SSH login. However I cannot access this repo from elsewhere. On the SSH account I use, git clone git@gitserver:proj/myrepo.git to clone the repo. I tried setting up a ssh tunnel to the git server from another machine using, ssh -L 3333:gitserver:22 userid@sshserver git clone ssh://localhost:3333/proj/repo.git However I keep getting prompted for a password for the user 'git'. Any ideas

How to setup ssh tunnel for ipython cluster (ipcluster)

[亡魂溺海] 提交于 2019-12-31 03:53:04
问题 I would like to run an ipython cluster on a ssh-accessible server and on some other machines all of which can connect to each other via ssh. The network is not trusted. I have tried setting up ssh tunneling using what I understood from the documentation on ipcontroller and ipengine. However the only way that I ended up getting a communication working is by implementing the tunnels manually. Using the instruction from Jean-Francis Roy one would first fix all the necessary ports controller-host

SSH tunneling via JSch

拜拜、爱过 提交于 2019-12-30 04:21:09
问题 My aim is to connect to a server (host) which is behind a firewall. I am able to access this server by connecting to another server (tunnel) in the network and then SSH to this server. However I am not able to implement the same scenario via JSch. I am not able to have the below code work, which I have written for this purpose. Please let me know if I am doing anything silly here. public class JschExecutor { public static void main(String[] args){ JschExecutor t=new JschExecutor(); try{ t.go(

SSH reverse tunnel not working for webserver

China☆狼群 提交于 2019-12-24 17:09:22
问题 I have a webapp running on a Raspberry Pi, which is behind a NAT, and I'm trying to make a tunnel to the company's server so that I can access it from the web. Right now I've been able to establish a tunnel using ssh -fN -R 192.168.0.28:54321:localhost:443 username@192.168.0.28 (both the server and the RPi are in the same LAN at the time), and doing curl -k https://192.168.0.28:54321 returns the contents of the webpage hosted in the RPi, but only if I do it from the server. I have set

Php - Pdo Ssh Tunnel

孤街浪徒 提交于 2019-12-24 02:59:15
问题 right now i am creating a ssh tunnel, so i can connect to my remote database, but for some reason the connection is still refusing... my script: try { $host = 'remote host'; $sshuser = 'ssh user'; $sshpass = 'ssh password'; $dbuser = 'db user'; $dbpass = 'db user'; $dbname = 'db name'; shell_exec("ssh -p$sshpass ssh -o StrictHostKeyChecking=no -f -L 3307:127.0.0.1:3306 $sshuser@$host"); $dbh = new PDO('mysql:host=127.0.0.1;port=3307;dbname=' .$dbname. '', $dbuser, $dbpass); $sth = $dbh-

Reverse SSH tunnel with JSCH Java [closed]

你离开我真会死。 提交于 2019-12-22 15:33:24
问题 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 4 years ago . Is it possible to do a reverse ssh connection using JSCH? If it is not, is there any other pure Java library that I can use to do a reverse tunnel SSH connection? The command I want to mimic is similar than: ssh -fN -R 7000:localhost:22 username@yourMachine-ipaddress 回答1: There is an example gist that shows how

How to SSH tunnel and connect to a database using IntelliJ and JDBC?

别说谁变了你拦得住时间么 提交于 2019-12-21 12:57:26
问题 I'm having issues connecting to a database hosted on a server using IntelliJ and JDBC. With the command line, the command: ssh username@server -L 11100:ct1:28017 -N creates a tunnel successfully and the command: psql db_name -h localhost -p 11100 db_username connects to the database fine and allows me to use it. How would this be translated correctly into the IntelliJ Data Sources and the SSH tunnel tools? At the moment, for the SSH tunnel settings I have: Proxy Host: server Port: 22 Proxy

Accessing SQL Server over an SSH tunnel

女生的网名这么多〃 提交于 2019-12-21 05:04:15
问题 In my development shop, we deploy code on virtual servers that sit on a remote network. We access the machines on that network by first opening an SSH connection to a gateway server, and then SSH-tunneling RDP over a local port. I would very much like to be able to locally access SQL Server instances running on these servers in the same way. I've set up a local port (3398) to redirect to the SQL Server port on the remote instance (L3398 -> remote.machine.com:1433). I can then actually test