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

learn more… | top users | synonyms

0
votes
0answers
2 views

Rasbian AFP-SSH-Tunnel

hope theres someone to help me out. I've Rasbian running on my Raspberry Pi which is connected to the internet over a router and registered on a free DNS-Server to connect to it. I have configured ...
2
votes
1answer
59 views

Correctly closing multiple hop SSH tunnel

I want to tunnel VNC traffic to host2, which is only accessible from host1, whereas host1 is publicly accessible. I setup a multi-hop SSH tunnel as described in this question, using: ssh -L ...
2
votes
1answer
1k views

Why SSH login works in shell but fails in all third parties via ssh tunnel?

I'm using ssh to log in (prompt password first time) on a remote server. In shell, using this command: ssh root@myserver.com works well! But all other db software applications that I tested ...
0
votes
1answer
16 views

Port tunneling via ssh. Is the traffic redirected via port 22?

I wonder, whether the whole traffic is redirected through port 22, if I create a SSH tunnel? For example if I create a tunnel to a remote pc joes-pc, will it be enough to open port 22 on joes-pc? ...
2
votes
0answers
17 views

Schedule on boot persistent reverse SSH tunnel on Mac OSX

In attempts to run a self sustaining reverse ssh tunnel I have tried installing the 'autossh' package with brew. Autossh works alone when ran through the user's prompt, but not with launchctl/launchd. ...
1
vote
1answer
1k views

ssh tunneling: connection closed by foreign host

I'm trying to create a scenario to test a simple ssh tunneling, just for using a simple telnet. I have two hosts: ubuntu and suse. Both of them have the other hostname on /etc/hosts file for address ...
20
votes
2answers
20k 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 ...
1
vote
1answer
29 views

Setting up port forwarding on router for reverse SSH tunnel

My home PC is behind NAT but my router has static ip address. My work PC uses 3G stick for Internet (So I guess it is like being behind NAT). I would like to create a reverse SSH-tunnel to connect to ...
1
vote
1answer
1k views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
3
votes
1answer
92 views

SSH connection through SSH tunnel keeps closing

I have a PI at home that creates an SSH tunnel to my VPS with autossh so I can access it from my VPS. When I log in to my PI from my VPS the connection keeps closing (which makes it unusable). For ...
20
votes
3answers
11k views

How do I know if my ssh tunnel is created successfully?

I rely on the following script tunnel.sh written by others to keep a ssh tunnel alive: #!/bin/bash export SSH_HOST=tim@server if [ ! -f /tmp/.tunnel ] then echo "Creat SSH tunnel" ssh -f -D 9999 ...
0
votes
0answers
20 views

Question about SSH tunneling

Consider this scenario. I have network manager on Server (S) and a network machine (N) both in a different network."N" can only be accessed via VPN..... .My laptop (L) is in the same subnetwork of ...
0
votes
0answers
12 views

Why the virtual interface is down when I establish a layer-3 SSH VPN using “tun” devices

I would like to establish a layer-3 SSH VPN on Ubuntu 14.04. To create a tun virtual device, I used the command ssh -f -w 0:0 root@41.33.17.26 -p 2010 true, it creates the interface 'tun0' but the ...
4
votes
1answer
992 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
0answers
20 views

Permanent proxy by sshuttle to Tunnel all the traffic

I need to set a proxy for my server. So I ran sshuttle on my server as follows:screen -dmS proxy sshuttle --dns -r alex@152.21.94.233:2020 0/0 When I log out the session, I can not login to the ...
0
votes
0answers
17 views

Reject ssh -L connection unless a corresponding ssh -R exists

Is there any way to make an SSH server reject a connection that attempts to use port forwarding unless it is directed to an existing reverse tunnel? To clarify, my intent is to only allow forwarding ...
3
votes
1answer
66 views

Tunneling multiple ports through a single port [duplicate]

I'd like to forward several ports from my local machine to a remote machine through SSH tunneling. However, I want this to happen across a single port. Is there a protocol or tool that can multiplex ...
72
votes
18answers
123k views

SSH tunneling error: “channel 1: open failed: administratively prohibited: open failed”

When I open this ssh tunnel: ssh -nXNT -p 22 localhost -L 0.0.0.0:8984:remote:8983 I get this error when trying to access the HTTP server running on localhost:8984: channel 1: open failed: ...
0
votes
0answers
27 views

For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled PermitTunnel yes ...
2
votes
2answers
66 views

ssh reverse tunnel with remote ip

From a server 192.168.0.1, I'd like to reach a server 192.168.0.2 on port 80. 192.168.0.2 can reach 192.168.0.1, but 192.168.0.1 can't reach 192.168.0.2 (firewall). I have set up a reverse proxy, by ...
1
vote
1answer
41 views

SSH tunnels force new tunnel and kill old session

This is the situation: I have a Linux server running Ubuntu server 14.04 to which multiple computers connect and authenticate with SSH and try to open a reverse tunnel. These computers usually do not ...
1
vote
1answer
22 views

Is it possible to run a thin client in virtualbox?

I have a Mac laptop for work. I would like to keep my personal stuff off of my work computer. Obviously I can just ssh to my home computer and/or tunnel X using Quartz. But this always feels clunky, ...
1
vote
1answer
122 views

Use HAProxy to tunnel SSH through https

I have a server with Apache webserver on it and many websites running on http (port 80) and https (port 443). I would like to use a proxy on port 443 in between Apache and the user. In this page, ...
0
votes
2answers
64 views

tunnelling ssh through ssh

I have a situation where I have a Windows 10 virtual machine running under VirtualBox on my linux desktop. This virtual machine (and at the moment only this virtual machine) can establish a VPN ...
0
votes
0answers
17 views

ssh tunnelling with and without PuTTy

I want to perform ssh tunnelling for which I have been using PuTTy. Config is as follows: Host IP: 172.XX.XX.111 Port: 22 Tunnel setting source port: 19005 Destination: 172.XX.XX.40:1521 After ...
2
votes
1answer
42 views

SHH Tunneling only accepted on some ports

I'm working with Server running Ubuntu Server 14.04. I use Plink to request some reverse tunnels from a remote computer to the server. For some ports that works just fine, but for most ports it seems ...
1
vote
0answers
37 views

Equivalent autossh command?

I am using the following command to setup an SSH tunnel to a remote server. I am using Ubuntu 15.10, and the remote server is running Ubuntu 14.04.3. ssh -N -f -L localhost:7154:localhost:7154 ...
3
votes
0answers
120 views

Why can't I execute an SSH command on a remote host?

I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell: ssh remoteHost Last login: Tue Feb 16 12:56:26 2016 from xx.xxx.xx.xx ...
6
votes
3answers
6k views

How can I set up a remote port forward on port 80 to my localhost with the help of setcap?

I'd like to accept connections briefly for development when I'm NATed, and so I'm attempting to do this: $ ssh ubuntu@example.org -R 80:localhost:80 Which fails as I'm trying to bind a port that is ...
1
vote
3answers
36 views

Understanding, and viewing, how ports are allocated by ssh tunnels?

I was trying to figure out a small problem with connecting to vnc through an SSH tunnel today where one of the possible issues was that someone else was already tunneled to the port. Without going ...
0
votes
1answer
108 views

Unable to establish an SSH tunnel using Redis Desktop Manager

I am trying to connect to an Elasticache Redis Server via an AWS Ubuntu instance and using an ssh tunnel. When I try to configure Redis Desktop Manager to connect via an ssh tunnel and provide ...
11
votes
3answers
12k views

ssh port forward to access my home machine from anywhere

http://serverfault.com/questions/303937/how-to-make-freebsd-box-accessible-from-internet I want to understand this whole process of port forwarding. I read so many things but failing to understand ...
1
vote
0answers
20 views

Can I change owner of a tunnel after creating it?

I've been trying to finagle pytun to do my bidding in creating persistent ssh tunnels, but I very much do not want these to be owned by root and unless I modify the python package myself (which as a ...
3
votes
2answers
97 views

Multi-hop socks proxy, how to?

I'm starting from a suggestion to use jvisualVM via SOCKS. However, I have a somewhat complex topology. Starting from my laptop, I have two intermediate hosts to get through to reach the machine I ...
5
votes
1answer
137 views

VPN server (beachhead) without root?

How can I set up a VPN server on a host where I don't have root? I have the following constraints: On the server A, I have no root. I can only operate in my home directory. In particular, I also ...
1
vote
1answer
40 views

Confirming that a reverse ssh tunnel has been established

I have a reverse ssh tunnel established between a client and a server computer. The client connects on the server on port 22, and creates a reverse ssh tunnel on port 4030. After the client computer ...
-1
votes
4answers
122 views

Ssh into a remote server, but my organization has blocked port 22

I am using Redhat Openshift server to deploy my webapps. To access the contents of my application I have to ssh into their server. Example ssh 56555ff90abcdefbf6e000077@appname.rhcloud.com ...
0
votes
0answers
27 views

How to get informed about EVERY incoming ssh connection (e.g. with no remote command specified)

The case I'm used to set up automatic reverse ssh tunnels to remote computers via my server with cron. Usually I use the following entry: @reboot sleep 300 && ssh -MNf -R xxx22:host:22 ...
2
votes
1answer
66 views

Why doesn't FTP work through my ssh tunnel?

Computer A (assumed that ip is 44.44.44.44)can ftp the host 130.89.148.12. ftp 130.89.148.12 Connected to 130.89.148.12. 220 ftp.debian.org FTP server Name (130.89.148.12:debian8): anonymous 331 ...
0
votes
0answers
19 views

Trying to make a SSH Tunel [duplicate]

I configurated a bastion server on AWS on my public subnet. I can make direct ssh to the ec2 instance inside the private subnet, using the bastion host. I can connect to the bastion host and check ...
4
votes
1answer
203 views

Predicting the PID of previously started SSH command

This is the weirdest thing. In a script, I start an SSH tunnel like so: ssh -o StrictHostkeyChecking=no -fND 8080 foo@bar This starts an ssh instance that goes into the background, and script ...
0
votes
2answers
66 views

set up secure connection over SSH

I'm setting up a server application which requires to establish a secure connection over SSH2, e.g. a client must open SSH2 connection to the server to reach specific application: % ssh -s -p5000 ...
6
votes
1answer
4k 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 ...
0
votes
0answers
25 views

How work tunnel to gnome connection manager

Someone using gnome connection manager? (http://kuthulu.com/gcm/?module=home&lang=). I need setup the tunnel for connection but i don't understand how to configure, help please!
4
votes
1answer
2k 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 ...
1
vote
2answers
375 views

Reverse SSH “Connection closed by ::1”

I try to establish a remote ssh connection. I tried to connect "Remote" with ssh -fN -R 10110:localhost:22 GatewayUser@GatewayHost and "Gateway" with ssh -p10110 RemoteUser@localhost I got the ...
0
votes
1answer
33 views

SSH tunnel between 3 box to get internet access

The network looks like this : Server X -- My machine -- Server Y My machine has SSH access to both boxes. Server Y has internet but not server X. How can I make a tunnel so server X can acces the ...
0
votes
1answer
136 views

“channel 3: open failed: administratively prohibited: open failed” when creating a VNC session on a SSH tunnel

On creating a VNC connection via tunneled SSH connection, I get an error: channel 3: open failed: administratively prohibited: open failed I have found that this happens only when I'm not logged ...
1
vote
0answers
132 views

Why MS Sql port (1433) forwarding does not work over http_connect proxy?

I have a windows machine with putty, which has access to ms sql server on local network. And i have a remote Ubuntu machine on the Internet with sshd on 443 port (required to establish secured ...
1
vote
1answer
94 views

How to use SSH tunnel to connect to remote MySQL server?

I am trying to connect to remote MySQL server, which runs on CentOS 6.6 cPanel server. I am creating tunnel this way: ssh -L 3306:xxx.xxx.xxx.xxx:3306 user@xxx.xxx.xxx.xxx -p PPPPP Where ...