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

learn more… | top users | synonyms

0
votes
1answer
20 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 ...
1
vote
3answers
54 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 ...
0
votes
1answer
33 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 ...
3
votes
1answer
48 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 / ...
1
vote
2answers
62 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 ...
1
vote
1answer
31 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 ...
-1
votes
1answer
42 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 ...
1
vote
1answer
34 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 ...
1
vote
2answers
54 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 ...
1
vote
1answer
60 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 ...
0
votes
1answer
35 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 ...
4
votes
2answers
136 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 ...
2
votes
1answer
51 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 ...
-1
votes
1answer
63 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 ...
1
vote
1answer
40 views

Give an access to Internet to a server reachable by SSH but where Internet is blocked

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. ...
0
votes
1answer
65 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 ...
1
vote
0answers
19 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 ...
0
votes
1answer
32 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 ...
1
vote
2answers
55 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 ...
5
votes
1answer
94 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 ...
3
votes
1answer
167 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 ...
2
votes
1answer
58 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 ...
1
vote
0answers
79 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 login@192.168.1.2 elinks http:127.0.0.1:9000 and I can see a web page. other ...
1
vote
1answer
1k 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 ...
2
votes
1answer
128 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 ...
1
vote
2answers
94 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 ...
3
votes
2answers
154 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 ...
0
votes
0answers
29 views

SSH tunneling via few hosts [duplicate]

That question is'n only about Unix/Linux - but contain something... So - given: host1 with TeamCity server running on 8111 port; host2 which will be "ssh-proxy" between client and host1. From host1 ...
3
votes
2answers
823 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 login into my SSH_SERVER. How can I ...
1
vote
1answer
293 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 ...
1
vote
0answers
71 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. ...
1
vote
1answer
151 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 ...
0
votes
1answer
60 views

How to forward port after tunneling

Today I have read this question and answer (How does reverse SSH tunneling work?). I tried it out and it worked perfectly however I want to know one thing. Say I have a web server running on port 8000 ...
2
votes
2answers
290 views

how to ssh -Y and then su - <another user> and still forward X applications to your local machine

it is easy enough to 'fetch' (ie draw locally) a remotely running linux application: If I ssh -Y to the remote machine and run an application, that application will surely enough pop up in my local ...
2
votes
2answers
167 views

ssh reverse tunneling not working

So, I have a server and a home machine. My server can't talk to internet, but my home machine can. So, I set up a reverse tunnel through home to server using: ssh -R 9001:www.google.com:80 server ...
3
votes
1answer
697 views

I need to RDP to a server through a reverse tunnel

I have a windows PC that is on network A and a windows PC on network B. Also in network B I have several Linux servers. From the PC on network A, I can ssh to any server on network B. I cannot, ...
4
votes
3answers
581 views

ssh to private-ip

I have a computer with CentOS (computer A) that configured as has an private ip 10.150.5.141 (with restricted firewall), can access internet and my ArchLinux VPS (computer B) with real ip w.x.y.z How ...
4
votes
2answers
85 views

ssh tunnelling explanation

I have a question regarding ssh tunneling. I've read this article http://www.popcornfarmer.com/2009/01/ssh-tunneling-tutorial/ I would like to make X forwarding work and run some X applications ...
4
votes
2answers
4k views

What do the channel numbers in ssh error message refer to?

In the example below what do the channel numbers correspond to? Which are on the server? Which are on the client? $ ssh -L1570:127.0.0.1:8899 root@thehost Password: Last login: Fri Aug 9 ...
0
votes
1answer
124 views

SSH reverse tunnel works except when I use a VirtualBox instance at one end. Why does VB break SSH?

VirtualBox seems to break my SSH ProxyCommand... here are the details: I want to open an SSH connection from my laptop to desktop over an SSH (reverse) tunnel. I want to do that in one step using ...
1
vote
1answer
281 views

Multiple SSH tunnels (local and remote forwarding) over one master OpenSSH connection? Good idea?

The question Using an already established SSH channel has an answer that intrigued me. It suggests that I can reuse an existing SSH connection. However, after further reading, I see that this solution ...
1
vote
2answers
371 views

How to bring back SSH session that was started with the -f option (run in background)

I'm pretty lost on this. From the man page: -f Requests ssh to go to background just before command execution. After starting SSH with the -f option, I have a working tunnel. But after I ...
2
votes
1answer
123 views

Establishing client VNC connection over SSH in one step (e.g., with the -via option)

How do I reduce these two commands to one? I am connecting from my client to an x11vnc server and the two commands below already work. I just wish to do it in one step: first command: ssh -fNL ...
2
votes
4answers
635 views

rsync over ssh tunnel

---------- /| /| ------------ | Home | | | | | | Work | | |--------| |---------------------| ...
1
vote
2answers
104 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
3
votes
1answer
582 views

How to parameterize the LocalForward option in ssh_config?

I'm starting with this fully working ssh command: $ ssh -fNL 3306:localhost:3306 coolio@database.example.com This config gets me part of the simplification I am after: Host tunnel HostName ...
1
vote
1answer
339 views

SFTP over reverse SSH tunnel?

I want to SFTP to a remote computer that is behind NAT. I can't modify the NAT router, so I have set up a reverse SSH tunnel using a middleman server. Here's what my SSH tunnel looks like: ...
1
vote
1answer
178 views

How to restrict an SSH tunnel to a certain outbound IP address on an SSH server?

I hope I'm phrasing this question correctly. I have a SSH server that I use for testing that has 2 internet connections running on it. The LAN connection is always on, but the USB connection is on ...
5
votes
1answer
2k views

Remote desktop over SSH reverse tunnel to replace TeamViewer

I want to open a remote desktop session from my laptop to desktop over my SSH (reverse) tunnel. That should be simple (or at least doable), right? Until now I've been using Team Viewer to log in to ...
3
votes
2answers
438 views

SSH tunnel through middleman server - how to connect in one step (using key pair)?

My question is basically how to turn my existing two steps into one step. I have a working SSH tunnel set up between two computers using a middleman server like this: ...