tunnel

Paramiko SSH Tunnel Shutdown Issue

与世无争的帅哥 提交于 2019-12-03 08:41:18
I'm working on a python script to query a few remote databases over an established ssh tunnel every so often. I'm fairly familiar with the paramiko library, so that was my choice of route. I'd prefer to keep this in complete python so I can use paramiko to deal with key issues, as well as uses python to start, control, and shutdown the ssh tunnels. There have been a few related questions around here about this topic, but most of them seemed incomplete in answers. My solution below is a hacked together of the solutions I've found so far. Now for the problem: I'm able to create the first tunnel

Connecting to gitosis server through an SSH tunnel

China☆狼群 提交于 2019-12-03 03:36:30
I've got an SSH tunnel setup on my macbook, like this... $ ssh -o ServerAliveInterval=3 -N -L 22222:gitosis-server:22 user@firewall.domain.com So I can ssh to localhost:22222 and will end up on the gitosis-server behind the firewall. I've created a local id_rsa.pub file, copied it into the gitosis server(running Centos5), and imported it into gitosis using... # sudo -H -u gitosis gitosis-init It was successful as I can see the public key in /var/lib/gitosis/.ssh/authorized_keys. Back on my macbook I setup a ~/.ssh/config file with the following... Host gitosis-server Hostname localhost

Tunnel over HTTPS

╄→гoц情女王★ 提交于 2019-12-03 01:45:31
问题 At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some recent filters now treat this traffic as IM and redirect it through another proxy, maybe. That's my best guess; in any case, my ssh connections now terminate before I get to log in. These days I've been using Ajaxterm over HTTPS, as port 443 is still

Tunnel over HTTPS

一笑奈何 提交于 2019-12-02 16:56:41
At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some recent filters now treat this traffic as IM and redirect it through another proxy, maybe. That's my best guess; in any case, my ssh connections now terminate before I get to log in. These days I've been using Ajaxterm over HTTPS, as port 443 is still unmolested, but this is far from ideal. (Sucky terminal emulation, lack of port forwarding, my browser

ngrok command not found

社会主义新天地 提交于 2019-12-02 16:09:17
I'm trying to install ngrok (which I've been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I've followed so far. Downloaded ngrok from here https://ngrok.com/download . Unziped the file and copied the Unix Executable File into application. Now from what I understand I just need to open the terminal, move inside the application folder and write ngrok http 80 . The result of this is "command not found". I've even signed up at the ngrok website and run from terminal the command ./ngrok authtoken "blablabla" and the result is "No such file or

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

让人想犯罪 __ 提交于 2019-11-30 22:42:58
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) -> Void in if((error) != nil) { print("VPN Preferences error: 1") } else { let p = NEVPNProtocolIKEv2() p

How to interface with the Linux tun driver

北城以北 提交于 2019-11-30 10:41:08
问题 I'm having a hard time figuring this problem out - I am trying to write a program that will interact with the Linux tunnel driver. At a very basic level, I simply want to create an application that is able to transfer data over a network tunnel. However, I am completely at a loss as to how to properly set up the tunnel driver in order to accomplish this. I am developing on Ubuntu 9.04, and I have the tunnel driver kernel module loaded. There exists the device /dev/net/tun , however there are

Something compareable to 'localtunnel' for Windows [closed]

自古美人都是妖i 提交于 2019-11-30 04:54:47
I found this here http://github.com/progrium/localtunnel , and it's exactly what I need, but I am working on Windows and localtunnel is Unix... Some backgorund: I am currently developing a Facebook app and the Single-Sign-On won't work on my local Tomcat. PageKite (disclaimer: I made this!) solves the same problems as localtunnel, but it is completely self-contained (written in Python, does not rely on ssh) which makes it very easy to install on Windows. Admittedly, you still have to deal with the command-line or at least edit the config file by hand, but a more user-friendly Windows GUI is in

How to interface with the Linux tun driver

血红的双手。 提交于 2019-11-29 22:32:48
I'm having a hard time figuring this problem out - I am trying to write a program that will interact with the Linux tunnel driver. At a very basic level, I simply want to create an application that is able to transfer data over a network tunnel. However, I am completely at a loss as to how to properly set up the tunnel driver in order to accomplish this. I am developing on Ubuntu 9.04, and I have the tunnel driver kernel module loaded. There exists the device /dev/net/tun , however there are no /dev/tunX devices. I am unable to create these devices using ifconfig - whenever I run /sbin

Is there any good universal PHP MySQL HTTP tunnel? [closed]

半世苍凉 提交于 2019-11-28 23:42:39
Many Windows MySQL tools like Navicat or EMS have this thing - You just put a PHP file on a shared hosting and can connect local running program to the remote MySQL server on the Web via the web service exposed by that php file. Are there any good popular free solutions to expose full MySQL as a web service using PHP? Alix Axel SQLyog's HTTP Tunnel is a very decent one. You can use TCP/IP over SSH from within MySQL Workbench and SQLyog without the need for PHP tunnelling script if you have SSH access to you server. I have had customer sites on shared hosts where this doesn't work due to server