ssh-tunnel

Run remote commands through SSH tunnel in Java

余生颓废 提交于 2019-12-04 18:55:55
I need to run some commands from a remote computer using an SSH connection, but the problem is the following: The client computer (running Windows) is connected to a network where I can see a server remote (second *nix computer, in the same network). I can do SSH connections with it, however the computer that contains the files (running *nix) isn't in this network, I only can connect with this trough a dynamic SSH tunnel open in the second computer, where I normally use PuTTY to configure this connection. Then I've got access to the remote files. The following picture represents the

Capturing and redirecting outgoing traffic from given ip:port to target ip:port [closed]

帅比萌擦擦* 提交于 2019-12-04 14:25:12
问题 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 6 years ago . On Windows 7 I have an SSH tunnel running on my local 127.0.0.1:34567 address that I need to access so I can access 12.34.56.78:8080 with the help of SSH proxying for me as I cannot access that IP directly (due to not being on the whitelist). My basic simple goal therefore is that on Windows whenever I request

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

大兔子大兔子 提交于 2019-12-04 14:14:22
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? http://www.example-code.com/csharp/sshTunnel_database.asp Create keys so you don't have to use a

How to create web based terminal using xterm.js to ssh into a system on local network

两盒软妹~` 提交于 2019-12-04 09:57:17
问题 I came across this awesome library xterm.js which is also the base for Visual Studio Code's terminal. I have a very general question. I want to access a machine(ssh into a machine ) on a local network through a web based terminal(which is out of network, may be on a aws server). I was able to do this in a local network successfully but I could not reach to a conclusion to do it from Internet-->local network . As an example - An aws server running the application on ip 54.123.11.98 which has a

Capistrano, Firewalls and Tunnel

痴心易碎 提交于 2019-12-03 19:28:27
We're using Capistrano to automate pushing new versions of a PHP application to a production server. The production server (we'll call it production) is public, while our repository server (we'll call it repo) sits behind our corporate firewall, along with our own machines. Capistrano, as configured by default, won't work, as production can't talk to repo. I was wondering if there was someway I could setup capistrano to SSH to repo first, then SSH to production opening a tunnel on a port that I can then use to SSH from production back to repo to pull the changes from SCM. I just can't figure

How tunneling services like 'Localtunnel' works without SSH?

女生的网名这么多〃 提交于 2019-12-03 16:39:56
I want to understand how my local IP address (localhost) can be exposed to Internet. For that I've read [here] a method of port forwarding using SSH. Which basically does routing from publicly available server to our localhost using SSH. But I wonder how the service like 'LocalTunnel' works? In above article it's written as following: There services (localtunnel for example) creates a tunnel from their server back to port 3000 on your dev box. It functions pretty much exactly like an SSH tunnel, but doesn’t require that you have a server. I've tried reading code from it's github repository and

Is it possible to do have Capistrano do a checkout over a reverse SSH tunnel?

末鹿安然 提交于 2019-12-03 12:23:30
问题 I am developing an application that resides on a public host but whose source I must keep in a Git repository behind a corporate firewall. I'm getting very tired of the slowness of deploying via scp (copying the whole repository and shipping it over SSH on each deploy) and would like to have the remote host simply do a git pull to update. The problem is that the firewall prohibits incoming SSH connections. Would it be possible for me to set up an SSH tunnel from my computer to the deployment

Capturing and redirecting outgoing traffic from given ip:port to target ip:port [closed]

你说的曾经没有我的故事 提交于 2019-12-03 09:05:23
On Windows 7 I have an SSH tunnel running on my local 127.0.0.1:34567 address that I need to access so I can access 12.34.56.78:8080 with the help of SSH proxying for me as I cannot access that IP directly (due to not being on the whitelist). My basic simple goal therefore is that on Windows whenever I request 12.34.56.78:8080 from anywhere (my browser for instance), I would like the request to instead be diverted to 127.0.0.1:34567 transparently, and I would like a software solution to this instead of a hardware one if possible. I think this is what's usually achieved in Linux by something

How to create web based terminal using xterm.js to ssh into a system on local network

元气小坏坏 提交于 2019-12-03 04:32:40
I came across this awesome library xterm.js which is also the base for Visual Studio Code's terminal. I have a very general question. I want to access a machine(ssh into a machine ) on a local network through a web based terminal(which is out of network, may be on a aws server). I was able to do this in a local network successfully but I could not reach to a conclusion to do it from Internet-->local network . As an example - An aws server running the application on ip 54.123.11.98 which has a GUI with a button to open terminal. I want to open terminal of a local machine which is in a local

Is it possible to do have Capistrano do a checkout over a reverse SSH tunnel?

强颜欢笑 提交于 2019-12-03 02:52:26
I am developing an application that resides on a public host but whose source I must keep in a Git repository behind a corporate firewall. I'm getting very tired of the slowness of deploying via scp (copying the whole repository and shipping it over SSH on each deploy) and would like to have the remote host simply do a git pull to update. The problem is that the firewall prohibits incoming SSH connections. Would it be possible for me to set up an SSH tunnel from my computer to the deployment computer and use my repository as the source for the git pull ? After all, git is distributed, so my