Questions tagged [ssh-tunneling]

An SSH tunnel provides an encrypted channel based on the SSH protocol.

Filter by
Sorted by
Tagged with
1 vote
1 answer
288 views

How can I use a Raspberry Pi as a router between two WiFi networks?

I want to RDP from PC1 (Running Windows 7), to PC2 (Running Windows 7) using Pi (Raspberry Pi running Debian). This the network situation: Network1 Network2 ...
Orny's user avatar
  • 111
3 votes
1 answer
7k views

SSH local port forwarding for web traffic requires proxy configuration in browser settings?

I enabled SSH local port forwarding with a command ssh -NL 8080:whatsmyip.org:80 <remote-sshd-machine>. Now when I opened up a Firefox and navigated to http://127.0.0.1:8080, the web-page did ...
Martin's user avatar
  • 7,546
2 votes
0 answers
1k views

iptables rule to transfer UDP through a SSH tunnel

The problem I have two programs that runs on two distant computers and communicate through a specific protocol. All I know is that this protocol only communicates through UDP and uses the ports 1101 ...
lauhub's user avatar
  • 962
6 votes
1 answer
3k views

Run SSH SOCKS5 proxy on system startup

I want to setup a linux server (Ubuntu Server 14.04 in this case) to be used as a SOCKS5 proxy by software on another client. Now this is pretty easy by running ssh -f -N -D 0.0.0.0:1080 localhost as ...
timonsku's user avatar
  • 171
1 vote
2 answers
3k views

SSH tunnelling explained in layman's terms

I've just used this guide to create a SSH tunnel to bypass my corporate proxy. I didn't use the usual "Putty", but in "MobaXterm" (a program similar to putty that also offers unix tools) I wrote, to ...
Con7e's user avatar
  • 339
4 votes
2 answers
3k views

Allow multiple remote connections to an ssh Dynamic forwarded port

Let us assume I have three machines A - Server to which I am sshing to B - Client from which I am sshing C - Another Client in B's subnet Now, I set up dynamic port forwarding for port 1235 by ...
Hashken's user avatar
  • 333
3 votes
0 answers
511 views

xtightvnc through ssh gateway -- connection refused

Following setup: homepc -> gateway -> workpc workpc:~$ tightvncserver :12 homepc:~$ ssh -N gatewayuser@gateway -L 1212:workpc:5912 Now I try to connect via homepc:~$ xtightvncviewer localhost:1212 ...
user21839213's user avatar
2 votes
0 answers
278 views

How to get information from sshd about established remote tunnels

I have a server running on which from many different places people log on via ssh and open remote ssh-tunnels to other places behind different firewalls. Now I want to try to get an overview, which ...
Michael's user avatar
  • 83
4 votes
1 answer
24k views

x11 connection established but magic-cookie value different?

From my local machine I ssh to a remote server along with authentication regarding X display. I know that in this process, MIT-MAGIC-COOKIES are used and the value in both server and client needs to ...
kwagjj's user avatar
  • 2,319
32 votes
4 answers
128k views

How can I forward sound over VNC?

I use TightVNC and Remmina Remote Desktop to connect my Raspberry Pi to my Ubuntu laptop over VNC. It works great for the most part, except for the fact that there is no sound. I have googled all ...
RPiAwesomeness's user avatar
12 votes
2 answers
10k views

initiate ssh connection from server to client

We can easily connect via ssh to the remote machine that has public IP. But now I have a remote machine without public IP, and I need to connect to it from my machine that does have public IP. So ...
Dmitry Frank's user avatar
  • 2,738
5 votes
3 answers
10k views

MySQL Workbench Cannot start SSH tunnel manager

I don't know why this error is happening when I try to connect by MySQL Workbench. Cannot start SSH tunnel manager. I'm using slackware 14.1 and installed all dependencies.    
Patterson's user avatar
  • 765
2 votes
2 answers
1k views

Cron job running but not establishing tunnel

I have a script which establishes a reverse tunnel on an endpoint HostB. It looks like this: cat tun.sh #!/usr/bin/env bash # Test code /usr/bin/ssh -V 1> /home/userA/bin/tun.stdout 2> /home/...
Einar's user avatar
  • 271
0 votes
1 answer
1k views

Can I use `screen` to keep an ssh tunnel alive from the client?

I read here that you can keep your ssh sessions alive a bit longer using a utility called GNU screen. Is it possible to keep an SSH tunnel alive longer with this as well?
leeand00's user avatar
  • 4,625
19 votes
5 answers
6k views

Determine dynamically allocated port for OpenSSH RemoteForward

Question (TL;DR) When assigning ports dynamically for remote forwarding (a.k.a. -R option), how can a script on the remote machine (for instance sourced from .bashrc) determine which ports were ...
Bananguin's user avatar
  • 7,984
3 votes
1 answer
157 views

What is the best way to create remote tunnel?

I have 3 Linux servers: 10.0.0.0/24 - (10.0.0.10) Linux server inside my LAN. 20.0.0.0/24 - (20.0.0.10) Linux server with HTTP Apache server 50.50.50.50/32 - Server on Amazon AWS which see both ...
gabi's user avatar
  • 131
5 votes
1 answer
23k views

channel 1: open failed: administratively prohibited: open failed [duplicate]

I am trying to set up an SSH tunnel (on a Raspberry Pi) with the following command: ssh [email protected] -L 5672:tabor.cs.kotnet.leuven.be:5672 -N (I should note that I can, or at least ...
Ad Fundum's user avatar
  • 151
2 votes
1 answer
895 views

SSH tunnelling outgoing traffic shaping

I am using an OpenSSH server for a client app that uses the traffic forwarding, SSH tunnelling and some users are consuming an extraordinary amount of bandwidth. Is there a way to shape the traffic on ...
Mantichora's user avatar
1 vote
1 answer
3k views

autossh won't run in background

I try to set autossh to run at boot adding it to /etc/rc.local but I am unable to even get it to run in the background. This is the crucial part of my config file: Host remotehost.com LocalForward ...
Niclas Nilsson's user avatar
1 vote
1 answer
2k views

SSH tunnel to VNC on a Windows 7 system. Error: Tunnel device open failed

The system I'm trying to SSH from is Fedora 20 x86_64. The system tunneling to is Windows 7 Ultimate 32-bit and it has Cygwin installed with TigerVNC and OpenSSH. VNC is running on Windows 7 on port ...
somethingSomething's user avatar
3 votes
3 answers
4k views

forwarding web traffic through a vps running on Ubuntu in another country

I've got a vps in another country. And I'd like to forward all my web traffic through it. I know there are commercial options available in the market but I'd like to do it by myself for the sake of ...
user2252999's user avatar
0 votes
1 answer
1k views

Error "ssh_exchange_identification" with Corkscrew

I'm trying to reach my ssh server (i'm behind a corporate proxy) so I tried to use Corkscrew. My ssh server is listening on port 443, I put sshd: ALL in my /etc/hosts.allow and there's nothing into my ...
Cramix's user avatar
  • 1
3 votes
1 answer
988 views

limiting a user's TCP transfer quota

I've been researching how to limit a user's monthly TCP download plus upload quotas. The total transfer limit is 1 TB / month . There are 50 users, so I wish to limit each user to a maximum of 20 GB / ...
nurettin's user avatar
  • 140
2 votes
2 answers
2k views

Having ssh tunneling itself for remote access from a third machine [duplicate]

I am struggling with understanding if and how the following is possible. Say that I have a machine T (target) which I want to access from remote (ideally via ssh). T is behind a router/firewall R ...
Acorbe's user avatar
  • 143
3 votes
1 answer
2k views

How can I tell which ports have been used for reverse SSH tunnels?

I have two machines, client and server. client has created a reverse-tunnel on server with something like ssh -R 12345:localhost:12345 server. When logged into server how could I find ports which ...
STW's user avatar
  • 2,271
-1 votes
1 answer
700 views

Understanding interface forwarding with VPN

I have a server with static IP address that I rented (Debian on it), and I have a server with a server at home which I bought and setup as home server (with Ubuntu Server). What I would like to do is:...
The Quantum Physicist's user avatar
1 vote
1 answer
269 views

log into a machine through another, with (de)compression at the ends only [duplicate]

I have looked all around but couldn't find the answer to a very simply question: I would like to log into machine C from machine A, passing through machine B. However, B is slow, so I would also like ...
ricab's user avatar
  • 722
1 vote
2 answers
404 views

Attach to an existing ssh tunnel

I have an existing ssh tunnel which connects machine A to C over B. #user@A: ssh -N user@B -L 9999:C:9999 Is there any way to create a new ssh tunnel on D and attach it to the existing tunnel so ...
greole's user avatar
  • 239
5 votes
1 answer
5k views

Directx application using wine over ssh -x

I'm trying to run a Windows app (Artemis video game - server mode) on my archlinux server. As it is an windows application I have to run it using Wine. As I'd like to be able to launch the server ...
Amxx's user avatar
  • 355
0 votes
1 answer
3k views

Connect to LAN resource via ssh tunnel

I have the following problem. From machine A I connect to machine B over the internet via ssh and port forwarding. Machine B is part of my local network and has connection to machine C which acts as a ...
greole's user avatar
  • 239
4 votes
2 answers
422 views

Find which ports a program access

I have a program that tries to connect to a server on start-up on a unknown port. I need to find out which port the program accesses to enable a ssh tunnel. I tried netstat but since the connection ...
greole's user avatar
  • 239
2 votes
1 answer
1k views

Creating a linux user with limited privileges for ssh tunnelling

I am following this post to create ssh tunnel to mysql. The details description of my application scenario is given in my other SOQ. I exactly followed these steps to create a user: useradd -s /bin/...
sakhunzai's user avatar
  • 319
3 votes
1 answer
9k views

Double port forwarding - SSH

NOTE: I'm not explaining why I want to do this. But here is the requirement. There are 4 hosts. Host A, Host B, Host C, Host D Host A is running some application which can be accessed at port 8001 I ...
Gokul's user avatar
  • 1,071
51 votes
4 answers
68k views

Give server access to Internet, via client connecting by SSH

I can use my home computer A to connect by SSH to a server B where access to the external network is blocked. In other words, all requests to Internet from B throw an error: Network is unreachable. ...
A.L's user avatar
  • 1,606
0 votes
2 answers
1k views

Multiple SSH tunnel through raspberry pi?

In my home network I have a PC, raspberry pi, macbook and a few other devices which I want to access away from home. As it stands, I have setup VNC server on my PC along with remote desktop and have ...
gray_fox's user avatar
1 vote
0 answers
159 views

ssh connection hangs when looking up a SERVFAIL domain

Scenario: I am browsing the internet through an ssh -D port-forwarding tunnel, both browsing (http, https, ...) connections and domain lookup queries are done using this SOCKS 5 local proxy. The ...
aularon's user avatar
  • 2,042
0 votes
1 answer
380 views

Supply additional ssh options in config file

How can I supply additional options in .ssh/config? I know that information like Host, Port, User etc. may be used in the ssh-configuration file to abbreviate ssh commands. I frequently create ssh-...
highsciguy's user avatar
  • 2,574
3 votes
2 answers
7k views

Tunnels to the same port number

I have an application that connects to several hosts on the same port: a.protected:123 b.protected:123 I don't have direct access to either of them, but I can make a ssh tunnel (through x.accessible)...
Cos64's user avatar
  • 163
7 votes
1 answer
854 views

Secure access to remote SSH tunnel

So I wish to be able to access my Raspberry Pi (which I keep at home behind a firewall) remotely. One option is to use a static IP address, but as a poor student I don't want to fork out for one, and ...
FogOnTheTyne's user avatar
8 votes
1 answer
16k views

Run X clients over multi-hop ssh tunnel

I've recently converted my home development machine to Linux, and would like to be able to log into it from work if needed. I use a mixture of Linux and Windows machines, and I already have various ...
KutuluMike's user avatar
2 votes
1 answer
1k views

use SSH tunnel to baypass Captive portal

I know that DNS tunneling is the good choice when we try to bypass captive portal, but i tried to do SSH tunneling instead of DNS but it doesn't works, technically speaking is that possible -bypass ...
ISMAIL's user avatar
  • 81
1 vote
0 answers
848 views

ssh local tunnel to VM

So, can anyone explain why this doesn't work? Everything from remote host (192.168.1.3): ssh -L 9000:192.168.1.2:80 [email protected] elinks http:127.0.0.1:9000 and I can see a web page. other ...
ast's user avatar
  • 277
2 votes
2 answers
14k views

Bash script calls expect script with master SSH connection

I'm trying to write a bash script that calls an expect script to establish a master SSH connection to be used for the remaining SSH commands in the bash script. ~/.ssh/config: ControlMaster auto ...
Big McLargeHuge's user avatar
6 votes
1 answer
5k views

Auto restart ssh session after sleep

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels. The Gnome Terminal window is ...
EoghanM's user avatar
  • 887
1 vote
2 answers
2k views

Reverse socks5 using SSH

Setup: Server is a virtual machine Server have a local ip adress Server is restricted so that it can't reach the internet (not sure how) Client machine have access to both server via SSH Client have ...
Fredrik Andersson's user avatar
3 votes
2 answers
2k views

SSH through router to internal file server

This is a real beginner question, I know. But I really don't seem to be able to wrap my head around the terminology to get what I want working. And since I want to do this on a router that 40-50 ...
Will Haynes's user avatar
130 votes
3 answers
152k views

SSH: tunnel without shell on ssh server

I have to set up a tunnel between two hosts. For this I use ssh in this way: ssh -L MY_LOCAL_PORT:FOREIGN_ADDRESS:FOREIGN_PORT MYUSER@SSH_SERVER after that, I log in to my SSH_SERVER. How can I ...
Bau Miao's user avatar
  • 1,523
1 vote
1 answer
5k views

ssh (remote console) between 2 computers from different private networks

I have two computers. Both of them are from different private networks. I'd like to connect from one of them to another (to program on it remotely). I attempted to use some remote desktop software (...
Loom's user avatar
  • 3,953
1 vote
0 answers
1k views

IBM AIX: How do I set up SSH X forwarding on an unprivileged user with no home?

Long story short: I have an AIX server where my user is unprivileged and has no home directory, and it is not easy to fix this because OS-level management of this server is outside of my jurisdiction. ...
RAKK's user avatar
  • 1,352
1 vote
1 answer
2k views

Reverse connection to SSH server [duplicate]

Machine A is connected to the internet and is behind firewall so it cannot receive incoming connections. Machine B is open to the internet. I want to be able to type commands into B and have them ...
Ploo's user avatar
  • 11