An SSH tunnel allows forwarding any traffic over the SSH protocol. This is used to secure the transmission or allow data to be exchanged where network restrictions are in place.

learn more… | top users | synonyms

61
votes
4answers
46k views

How to make ssh tunnel open to public?

Well, referring back to this question, I am running the command ssh -R 8080:localhost:80 -N root@example.com on a Mac. Yet the port that is being tunneled is not working publicly. I am running such ...
14
votes
3answers
12k views

SSH Reverse socks tunnel

ssh -D can make a socks port at local machine, which pass the traffic to the remote, then to other places. ssh -L port:host:hostport, listen port at local machine, pass the traffic to "host:hostport" ...
19
votes
5answers
18k views

SSH access to office host behind NAT router

I would like to access the ssh port of my office linux host from home. Unfortunately the host is located behind a NAT router. So, the IP address is not publicly available. There is however access to ...
11
votes
1answer
6k views

SSH as socks proxy through multiple hosts

Can the following be achieved with SSH. There are three machines involved: A. My local machine at home B. The SSH gateway server at school C. A workstation in a lab, only reachable through B I ...
1
vote
2answers
795 views

SSH behind proxy ?

What is the best way to SSH to my sever behind company proxy , it seems that 22 port is not opened by default , is there any simple way to do that rather than to install corkscrew ?? When I do : ✗ ...
0
votes
1answer
678 views

SSH tunnel through two servers to access a web service on port 9091

what I have is a "phone-home" service running at remote1 that connects to LAN1 via: ssh -N -R 16864:localhost:22 <myuser.on.lan1>@<lan1.ip> so from the SSH terminal on LAN1 I can easily ...
30
votes
7answers
75k views

List open SSH tunnels

I use a lot of SSH tunnels to various servers on my linux machine (for tunnelling to databases, web servers etc) and it would be really handy to view a list of current open tunnels via a shell script. ...
23
votes
2answers
9k views

Differences between ssh -L to -D

I'm trying to understand the differences between ssh -L to -D. Is there anything else except for that -D is SOCKS only? Thanks!
7
votes
2answers
7k views

SSH tunnel to home network, and access router web interface

I'm trying to use an ssh tunnel from a remote location to connect to my home network and access the router web interface. I have SSH access to the home network, and I can connect to the gateway ...
3
votes
2answers
5k views

chrome socks proxy through ssh forwarding timeouts

I'm attempting to forward all traffic through from Google Chrome through a SSH tunnel. When Firefox is configured to use the tunnel, it works. When chrome is launched with the proxy args appended, it ...
11
votes
2answers
2k views

How to determine the port allocated on the server for a dynamically bound openssh reverse tunnel?

When creating reverse tunnels on recent versions of OpenSSH a remote port of 0 can be given to bind any available port: -R [bind_address:]port:host:hostport ... If the port argument is `...
2
votes
1answer
2k views

How to tunnel a local port onto a remote server

I have a domain that i bought from DynDNS. I pointed the domain at my ip adress so i can run servers. The problem I have is that I don't live near the server computer... Can I use an ssh tunnel? As I ...
1
vote
3answers
500 views

SSH Tunneling in Layman's term

What exactly is SSH tunneling? What is the difference between the terms: SSH Tunneling and Port forwarding? What is the exact difference between different types of SSH tunneling methods? Local ...
1
vote
2answers
418 views

YouTube not working via SSH tunnel proxy to a U.S.-based IP address

YouTube is blocked in my country. To connect to this site, I created a SOCKS5 SSH Tunnel proxy using this command and configured Firefox accordingly; 111.222.333.444 is a U.S.-based IP address: ssh -...
0
votes
1answer
832 views

“noshell” for ssh proxy users

I like to setup a special ssh user which is only allowed to tunnel web traffice through my server. I do not want to make an open proxy. This brings me to my question: Is there a "noshell" shell for ...
5
votes
2answers
3k views

Why is my connection via ssh tunneling much slower than other connections to a remote machine?

I rented a small Linux box with an intention to use it as a proxy for netflix etc. When I ssh and run wget my speeds are like 20Mb/s but when I connect with putty and go to speedtest I only get ...
2
votes
0answers
478 views

sshuttle on a DD-WRT / OpenWRT Router

Has anybody had any success installing and running sshuttle on a wireless router? My intent is to have all traffic from all devices (computer, tablet, gaming system, etc.) that connect to the router ...
1
vote
1answer
278 views

Which SSH config option stops me from SSH'ing through a SSH tunnel?

I am trying to connect directly to a my work computer (work) which is only available via an outside server (outside). So, the network path is: home » outside » work Ideally, this should work: home$...
0
votes
1answer
234 views

Gateway Server Jump Bastion Host Local Setup

I want to ssh to a remote private host using an intermediate (bastion, jump, gateway) server. This command works fine: ssh gateway ssh private With this ~/.ssh/config setup: Host gateway User ...
0
votes
1answer
1k views

SSH tunnel over 2 servers

I used the following command to create a tunnel from my system to server1 and from server1 to server2 to have a tunnel from my system to server2 ssh -t -t -L4450:localhost:5590 user1@server1 'ssh -L ...
0
votes
2answers
81 views

Open SSH port a bad idea on a Raspberry Pi?

I have a Raspberry Pi at home that I have connected to my home network. I use it to run a VPN server, SSH tunnel, and occasionally I SSH into it to perform maintenance on it. Is it a bad idea to have ...
0
votes
1answer
534 views

Remote desktop to server through an intermediate computer

I have access to 3 machines: A(Windows 8, on which I am admin), B(Old Ubuntu distro on which I am root), and C (Server running Ubuntu, on which I am NOT root). I need to remote desktop from A to C. ...
0
votes
1answer
2k views

SSH error: “Connect to host: Bad file number”

When on my local network, I can SSH into my desktop just fine by connecting to 192.168.0.5. However, When attempting to connect to my home IP, using the same port and user, I get the infamous "Bad ...
0
votes
5answers
4k views

SSH tunnel for VNC not functioning

I am playing with my sexy new Ubuntu 10.04 server I am trying to tunnel x11vnc through SSH to putty. Steps I took (all from my Windows 7 client) open putty (0.60) Enter the server address under ...