tunnel

Access SVN server from machine on work subnet via an SSH tunnel

这一生的挚爱 提交于 2019-12-24 15:13:33
问题 I'm attempting to access my work SVN server via an SSH tunnel to a separate machine. Something like this: (Local_Machine) -- SSH_Tunnel --> (Workstation) -- LAN --> (SVN_Server) I can currently tunnel into my workstation via ssh, but cannot access the svn server via the tunnel on my local machine. Is what I'm attempting to do possible, or do I need to also tunnel into the SVN_Server from the Workstation? Further information : Local machine is a Windows 7 box using putty to tunnel. Workstation

Using net/ssh/gateway to establish ssh tunnel to mysql

岁酱吖の 提交于 2019-12-24 05:59:16
问题 I'm attempting to establish a tunnel to a remote server via ssh, and then use the forwarded port to access MySQL. I'm using it currently like this $gateway = Net::SSH::Gateway.new('target.server', 'user') def with_gateway $gateway.open("target.server", 3306) do |port| yield port end end Which in my mind would be similar to this... `ssh -L #{port}:localhost:3306 -N user@target.server` Then when I try to use it and do something like this. with_gateway do |port| puts `mysql -u user -ppass -h 127

Using net/ssh/gateway to establish ssh tunnel to mysql

懵懂的女人 提交于 2019-12-24 05:58:13
问题 I'm attempting to establish a tunnel to a remote server via ssh, and then use the forwarded port to access MySQL. I'm using it currently like this $gateway = Net::SSH::Gateway.new('target.server', 'user') def with_gateway $gateway.open("target.server", 3306) do |port| yield port end end Which in my mind would be similar to this... `ssh -L #{port}:localhost:3306 -N user@target.server` Then when I try to use it and do something like this. with_gateway do |port| puts `mysql -u user -ppass -h 127

using ssh keys in bash script

青春壹個敷衍的年華 提交于 2019-12-24 00:38:53
问题 I've setup ssh keys form server A to server B and I can login to server B without a password. I'm trying to setup a reverse ssh tunnel in a bash script. From the command line if I do ssh -N -R 1234:localhost:22 user@mydomain.co.uk -p 22 form server A it works as expected i.e no password required, however if I use it in a script #!/bin/bash /usr/bin/ssh -N -R 1234:localhost:22 user@mydomain.co.uk -p 22 I get asked for the password user@mydomain.co.uk's password: How do I make it so it uses the

Fabric over reverse SSH tunnel

我怕爱的太早我们不能终老 提交于 2019-12-23 05:57:36
问题 Is there a trick to running Fabric over a reverse SSH tunnel? An interactive ssh connects fine back over the turnnel, but running fab , I just get asked for my password repeatedly. 回答1: Here is a snippet with a solution https://gist.github.com/856179 Just copy, paste and use 回答2: Here's a solution that doesn't involve writing any extra Python code: If you set up your SSH configuration to tunnel over a SOCKS proxy, you can tell Fabric to use the SSH configuration. It's sweet. Example $HOME/

Twisted UDP to TCP Bridge

我们两清 提交于 2019-12-23 04:43:50
问题 Recently I've taken my first stab at Twisted/Python building an app that echoes incoming UDP strings out the TCP port. I assumed this would be very simple, but I haven't been able to get it to work. The code below is the example TCP & UDP Server modified to run together. I'm just trying to pass some data between the two. Any help would be appreciated. from twisted.internet.protocol import Protocol, Factory, DatagramProtocol from twisted.internet import reactor class TCPServer(Protocol): def

SSH tunnel Complex Problem

家住魔仙堡 提交于 2019-12-23 02:54:19
问题 for a programming project I have to do some strange setup. Now, first of all, I have root rights on both servers, and I think an ssh tunnel is the best way (if you have a better idea, please feel free to tell me) I have to write a piece of software running on an IRC server. That is not difficult, but the IRC server is only reachable on localhost. So I have to ssh to the box first and then use irssi or similar to connect to localhost:6667 Now I tried to do an ssh-tunnel from a second server

what's distinction of HTTP proxy, tunnel, gateway? [closed]

混江龙づ霸主 提交于 2019-12-21 06:59:42
问题 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 . all, I see the terms from RFC 2616. http://www.w3.org/Protocols/rfc2616/rfc2616-sec1.html#sec1 But I can't understand the distinction of the proxy, tunnel and gateway? Can anyone give me a simple explanation of them? Thanks. 回答1: The answer below is explained based on the definition found in RFC 2616 Proxy and

Problem originating SSH tunnels from python

核能气质少年 提交于 2019-12-21 02:57:30
问题 The object is to set up n number of ssh tunnels between satellite servers and a centralized registry database. I have already set up public key authentication between my servers so they just log right in without password prompts. Now what ? I've tried Paramiko. It seems decent but gets pretty complicated just to set up a basic tunnel, although code exmplaes would be aprreciated. I've tried Autossh and it dies 2 minutes after setting up a working tunnel, bizarre! Hopefully someone can help me

“Error Domain=NEVPNErrorDomain Code=1 \”(null)\“” While connecting VPN server

青春壹個敷衍的年華 提交于 2019-12-19 03:38:38
问题 I'm getting "Error Domain=NEVPNErrorDomain Code=1 \"(null)\"" only first time while connecting to VPN server, later onwards it works perfectly. I've checked NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension similar to my problem and followed the way its said in this solution but still getting same error. So here is my code for connecting to VPN Server using Network Extension. func initVPNTunnelProviderManager(){ self.vpnManager.loadFromPreferences { (error) ->